Execute a command with CLI
Pass the sandbox ID followed by the command and its arguments:
sh
agentbox sandbox exec "$sandbox_id" printf 'hello from AgentBox\\n'AgentBox options must come before the sandbox ID. Use --cwd, --user, and repeatable --env KEY=VALUE to configure the remote process. Everything after the sandbox ID is passed to the command.
Piped standard input is forwarded to current sandbox templates. Add --background to return immediately; the CLI prints the remote process ID to standard error.