Create a sandbox, run one command in it, print a summary on stderr, and kill
the sandbox (also on error or Ctrl-C). anona-compute exits with the command's exit code.
Cost is printed when the API reports it; the current API does not, so the
summary says "unknown" rather than guessing.
Usage
anona-compute run [flags] -- COMMAND [ARGS...]
Flags
| Flag | Type | Description |
|---|---|---|
--auto-pause | pause instead of kill when the timeout ends | |
--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 sandbox (repeatable) |
--help, -h | help for run | |
--keep | do not kill the sandbox after the command | |
--metadata | stringArray | metadata KEY=VALUE (repeatable) |
--no-internet | create the sandbox without internet access | |
--template, -t | string | template ID or alias (default: profile default_template, else “base”) |
--timeout | string | sandbox lifetime before it is killed or paused (e.g. 300s, 1h) (default “300s”) |
--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.