Commands / kosa8 cloud preview
kosa8 cloud preview
Open a sandbox's port at its own https URL
A preview serves one port of a sandbox at https://….kosa8labs.com. It is private by default: the URL carries a signed token that expires (--expires, default 1h); kosa8 cloud preview link makes a fresh one. --public serves it to anyone. --wake lets a request wake the sandbox when it is asleep.
Also known as: previews, port
Example
kosa8 cloud sandbox exec -d sbx_abc -- python3 -m http.server 3000 kosa8 cloud preview open sbx_abc 3000 kosa8 cloud preview open sbx_abc 8080 --public --wake --no-open kosa8 cloud preview ls sbx_abc kosa8 cloud preview rm sbx_abc 3000
Subcommands
kosa8 cloud preview linkMake a new signed link to a private preview
kosa8 cloud preview lsList a sandbox's previews (private ones without their token)
kosa8 cloud preview openServe a port at an https URL and open it in a browser
kosa8 cloud preview rmClose a preview; its URL stops working
kosa8 cloud preview rotateMove a preview to a new URL; the old one stops working