bdy sandbox exec command

$bdy sandbox exec command|cmd [options] <identifier> <command>

Execute a command in sandbox. Commands run as buddy with passwordless sudo. Use sudo for package installs

ARGUMENTS
identifier
Sandbox identifier (required)
OPTIONS
-w, --workspace <domain>
Workspace URL handle. Can be set via variable: BUDDY_WORKSPACE
-p, --project <name>
Project name. Can be set via variable: BUDDY_PROJECT
--runtime <runtime>
Command runtime: BASH, JAVASCRIPT, TYPESCRIPT, PYTHON (default: BASH)
--wait
Wait until operation completes
-h, --help
display help for command

Documentation for bdy v1.22.49

Last modified on May 19, 2026

Examples

## ran command in sandbox
bdy sb exec command sandbox-identifier "ls -la"$
## ran command in sandbox and wait for it to complete
bdy sb exec command sandbox-identifier "sleep 10" --wait$
## install package from apt
bdy sb exec command sandbox-identifier "sudo apt-get update && sudo apt-get install -y nginx" --wait$