Usage
exec, ex
Flags
Global flags (
--api-key, --api-url, --json, --output, --profile, --request-timeout, --verbose) work on every command; see anona-compute.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run a command in a sandbox
Run a command in a running sandbox and stream its output. anona-compute exits with
the command's exit code. With one argument the command is a shell string
(anona-compute exec ID -- 'ls | wc -l'); several arguments are quoted and joined.
With --json, output is one object per line: {"type":"stdout"|"stderr","data":...}
and finally {"type":"exit","exitCode":N}.
anona-compute exec SANDBOX_ID -- COMMAND [ARGS...] [flags]
exec, ex
| Flag | Type | Description |
|---|---|---|
--background, -b | start the command, print its PID and return | |
--cmd-timeout | duration | stop waiting for the command after this long (0 = no limit) |
--cwd, -w | string | working directory |
--env, -e | stringArray | environment variable KEY=VALUE for the command (repeatable) |
--help, -h | help for exec | |
--user, -u | string | user to run as (default: the sandbox’s default user) |
--api-key, --api-url, --json, --output, --profile, --request-timeout, --verbose) work on every command; see anona-compute.