bdy sandbox exec command

View as Markdown
$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
--scope <scope>
Force scope (WORKSPACE, PROJECT, ENVIRONMENT). By default calculated by provided options and environmental variables (--project,
--environment
BUDDY_PROJECT, linked project)
-e, --environment <identifier>
Environment identifier
--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.24.8

Last modified on Sep 3, 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$