CLI & APICommand reference
stackblaze sandboxes
Developer sandboxes - disposable VMs with a shell and VS Code in a project environment
Usage: stackblaze sandboxes|sandbox [options] [command]
Developer sandboxes: disposable VMs with a shell and VS Code in a project
environment
Options:
-h, --help Print help
Commands:
list|ls [options] List the sandboxes of a project environment
sizes|capabilities [options] Machine sizes (vCPU / memory / disk) and which
your plan allows
create [options] [name] Create a sandbox (boots the agent image in a
VM); --for <app> attaches a service's volumes
and add-ons
get [options] <name> Show a sandbox: status, size, image, workspace,
VS Code URL
delete|rm [options] <name> Delete a sandbox, its workspace disk and
checkpoints (confirm by typing its name)
sleep [options] <name> Put a sandbox to sleep (scale to zero; disk and
volumes stay)
wake [options] <name> Boot a sleeping sandbox again
resize [options] <name> Change the machine size (the VM restarts; the
disk grows with the size, never shrinks)
ssh [options] <name> Open a shell in the sandbox VM (Console must be
enabled for your organization)
ide [options] <name> Print a short-lived sign-in link for the
sandbox's browser VS Code
help [command] Print this message or the help of the given
subcommand(s)sandboxes list
Usage: stackblaze sandboxes list|ls [options]
List the sandboxes of a project environment
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
The sandboxes of an environment. This one is still waiting for a machine:
stackblaze sandboxes list -p github-demo-cw8z -e devOK github-demo-cw8z/dev sandboxes
┌──────────────┬─────────┬──────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────┬──────────────────┐
│ Name │ Status │ Size │ Image │ For │ Created │
├──────────────┼─────────┼──────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────┼──────────────────┤
│ scratch-mkwl │ pending │ 1x │ ghcr.io/stackblaze/agent-sandbox:dev@sha256:9e19299090c2ac2dc81a8fa68876b861f0d14981c1b14222c2826acf66196d99 │ — │ 2026-11-25 14:39 │
└──────────────┴─────────┴──────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────┴──────────────────┘sandboxes sizes
Usage: stackblaze sandboxes sizes|capabilities [options]
Machine sizes (vCPU / memory / disk) and which your plan allows
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
The machine sizes for a sandbox, and which ones your plan allows. The disk comes with the size:
stackblaze sandboxes sizes -p github-demo-cw8z -e dev┌─────┬──────┬──────┬────────┬────────┬──────┐
│ │ Size │ vCPU │ Memory │ Disk │ Plan │
├─────┼──────┼──────┼────────┼────────┼──────┤
│ │ 1x │ 1 │ 2 GiB │ 10 GiB │ ok │
├─────┼──────┼──────┼────────┼────────┼──────┤
│ * │ 2x │ 2 │ 4 GiB │ 20 GiB │ ok │
├─────┼──────┼──────┼────────┼────────┼──────┤
│ │ 4x │ 4 │ 8 GiB │ 40 GiB │ ok │
├─────┼──────┼──────┼────────┼────────┼──────┤
│ │ 8x │ 8 │ 16 GiB │ 80 GiB │ ok │
└─────┴──────┴──────┴────────┴────────┴──────┘
Business allows up to 8 vCPU / 32 GiB per sandbox.
image: ghcr.io/stackblaze/agent-sandbox:dev
* = default for `sandboxes create` without --sizesandboxes create
Usage: stackblaze sandboxes create [options] [name]
Create a sandbox (boots the agent image in a VM); --for <app> attaches a
service's volumes and add-ons
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
--phase <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
--size <id> Machine size from `sandboxes sizes`, which also sets
the disk (default: the platform default)
--image <ref> Container image to boot instead of the default agent
image
--for <app> Develop this service: its volumes and add-ons are
attached
--read-only With --for: mount the service's volumes read-only
(default: false)
--env <pair> KEY=value in the sandbox (repeatable; not with --for).
The environment is --phase here
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
Examples:
$ stackblaze sandboxes create # random name, default size
$ stackblaze sandboxes create scratch --size 4x --phase staging # 4 vCPU · 8 GiB · 40 GiB disk
$ stackblaze sandboxes create --for web # a dev box on web's data
$ stackblaze sandboxes ssh scratch
May be disabled by your platform admin.Example
Create a small sandbox called scratch in the dev environment. The environment flag is --phase here (--env sets variables inside the sandbox). The name gets a suffix:
stackblaze sandboxes create scratch --size 1x -p github-demo-cw8z --phase devOK Sandbox scratch-mkwl is booting in github-demo-cw8z/dev (size 1x, 10Gi disk)
Shell: stackblaze sandboxes ssh scratch-mkwl -p github-demo-cw8z -e dev
VS Code: stackblaze sandboxes ide scratch-mkwlsandboxes get
Usage: stackblaze sandboxes get [options] <name>
Show a sandbox: status, size, image, workspace, VS Code URL
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
One sandbox's status, size, image, workspace disk and VS Code address. While it waits for a machine, the note says why:
stackblaze sandboxes get scratch-mkwl -p github-demo-cw8z -e devOK github-demo-cw8z/dev/scratch-mkwl pending
size 1x
image ghcr.io/stackblaze/agent-sandbox:dev@sha256:9e19299090c2ac2dc81a8fa68876b861f0d14981c1b14222c2826acf66196d99
workspace /workspace (10Gi, volume scratch-mkwl-workspace)
vs code https://scratch-mkwl.cloud-dev-central-1.stackblaze.app
created 2026-11-25T14:39:05.673Z by <email>
note Waiting for capacity — the sandbox nodes are out of CPU or memory. It starts automatically when room frees up.sandboxes delete
Usage: stackblaze sandboxes delete|rm [options] <name>
Delete a sandbox, its workspace disk and checkpoints (confirm by typing its
name)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-y, --yes Skip the confirmation prompt (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Delete a sandbox with its workspace disk and checkpoints. You confirm by typing its name (--yes skips this):
stackblaze sandboxes delete scratch-mkwl -p github-demo-cw8z -e dev! This will DELETE sandbox scratch-mkwl in github-demo-cw8z/dev, its workspace disk and its checkpoints.
Type the sandbox name to confirm:
OK Deleted sandbox scratch-mkwlsandboxes sleep
Usage: stackblaze sandboxes sleep [options] <name>
Put a sandbox to sleep (scale to zero; disk and volumes stay)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpsandboxes wake
Usage: stackblaze sandboxes wake [options] <name>
Boot a sleeping sandbox again
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
May be disabled by your platform admin.sandboxes resize
Usage: stackblaze sandboxes resize [options] <name>
Change the machine size (the VM restarts; the disk grows with the size, never
shrinks)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
--size <id> Machine size from `sandboxes sizes`
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
May be disabled by your platform admin.sandboxes ssh
Usage: stackblaze sandboxes ssh [options] <name>
Open a shell in the sandbox VM (Console must be enabled for your organization)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--command <shell> Run this command instead of a login shell; exits with
its exit code
--timeout <seconds> Give up on --command after this many seconds
-h, --help Print help
May be disabled by your platform admin.sandboxes ide
Usage: stackblaze sandboxes ide [options] <name>
Print a short-lived sign-in link for the sandbox's browser VS Code
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
--reveal Also print the VS Code password (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
May be disabled by your platform admin.