Skip to main content
You can manage sandbox snapshots with the e2b sandbox snapshot (alias snap) commands.

Create a snapshot

To create a snapshot from a sandbox, use the create command with the sandbox ID.
You can name the snapshot template with the --name flag. If a template with that name already exists, it is reused.

List snapshots

To list all snapshots, use the list command.
To list only snapshots created from a specific sandbox, pass the sandbox ID.
You can filter by snapshot name or ID with the --name flag, optionally tag-qualified.
To limit the amount of snapshots returned, use the --limit flag. By default, the command returns up to 1000 snapshots. Use --limit 0 to return all snapshots.
To output the snapshots in JSON format, use the --format flag.

Delete snapshots

To delete one or more snapshots, use the delete command with the snapshot IDs.