Skip to content

Manage snapshots with CLI

Create a snapshot from a sandbox, then list snapshots associated with it:

sh
agentbox sandbox snapshot create "$sandbox_id" --name "$snapshot_name"
agentbox sandbox snapshot list "$sandbox_id"

Use agentbox sandbox snapshot list --format json for machine-readable output. The list can be filtered by sandbox ID or snapshot name and limited with --limit.

Delete snapshots by ID with agentbox sandbox snapshot delete SNAPSHOT_ID. Snapshot data remains independent from the source sandbox, so killing the sandbox does not delete its snapshots.