kosa8 docs

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

FlagTypeWhat it doesDefault
-e, --envstringArrayset an environment variable, NAME=value (repeatable)[]
--imagestringimage 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