List Sandboxes

Updated at:

List sandboxes to inspect the sandbox instances visible under the current account. By default, the CLI returns running sandboxes.

e2b sandbox list

To view running and paused sandboxes together, specify states:

e2b sandbox list --state running,paused

You can filter by metadata:

e2b sandbox list --metadata key1=value1,key2=value2

You can limit the number of returned entries:

e2b sandbox list --limit 10

You can switch the output format:

e2b sandbox list --format pretty
e2b sandbox list --format json

This command is useful for local debugging and resource inspection. Production systems should not rely on the CLI to manage sandbox lifecycles. Use the SDK or server-side control logic instead.