sbx stop

Description Stop one or more sandboxes without removing them
Usage sbx stop SANDBOX... [flags]

Description

Stop one or more running sandboxes without removing them. Or — with --cloud — the cloud sandbox ID (sbx_*) or name from “sbx --cloud ls”.

Stopped sandboxes retain their state and can be restarted with “sbx run”.

With --cloud, stop suspends each sandbox in place: its full state (memory + disk) is preserved, the host is released, and the sandbox keeps its ID. Stop returns once the request is accepted. Watch the sandbox reach the stopped state with “sbx --cloud ls”. Restart it — same ID — with “sbx --cloud attach SANDBOX”, with “sbx --cloud run AGENT --name NAME” (also non-interactively with --detach), or by running its agent again and picking it from the prompt.

Stop does not create a template and does not delete the sandbox. To capture a durable, shareable template from a running sandbox instead, use “sbx --cloud template save SANDBOX TAG” (which leaves the sandbox running).

Options

Option Default Description
--format Output format: table, json or yaml
--json Output in JSON format

Global options

Option Default Description
--cloud Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
-D, --debug Enable debug logging

Examples

sbx stop my-sandbox

## Stop several at once
sbx stop one two

Table of contents