Commands / kosa8 cloud sandbox exec
kosa8 cloud sandbox exec
Run a command in a cloud sandbox and print its output
Usage
kosa8 exec ID -- COMMAND [ARG...]
Runs the command to completion and prints what it wrote; kosa8 exits with the command's exit code. A sleeping sandbox wakes for it.
Options
| Flag | Type | What it does | Default |
|---|---|---|---|
-e, --env | stringArray | set an environment variable, NAME=value (repeatable) | [] |
--image | string | image to run the command in (default: the template's own) | — |
Example
kosa8 cloud sandbox exec sbx_abc -- python3 -c 'print(1+1)' kosa8 cloud sandbox exec sbx_abc -e DEBUG=1 -- ./run.sh