Share feedback
Answers are generated based on the documentation.

sbx ttl

DescriptionInspect or extend a cloud sandbox's TTL
Usagesbx ttl [+DURATION] SANDBOX

Description

Inspect or extend a cloud sandbox's TTL.

With one argument, prints the current expiration and the maximum remaining time before the sandbox's hard 24h-from-creation ceiling.

With two arguments — a duration prefixed with '+' followed by a sandbox ID or name — extends the TTL by that amount, subject to the server-enforced ceiling. The server cannot shorten an expiration, so DURATION must be positive.

SANDBOX may be given by ID (sbx_*) or name, as shown by "sbx --cloud ls".

Cloud-only: local sandboxes are not TTL-managed.

Options

OptionDefaultDescription
--jsonOutput as JSON

Global options

OptionDefaultDescription
--cloudDispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
--cloud-api-urlhttps://api.sandboxes-cloud.docker.comCloud Sandboxes API base URL; only used with --cloud. Defaults to prod (https://api.sandboxes-cloud.docker.com). Set DOCKER_CLOUD_API_URL or pass this flag to override; a legacy value ending in /v1 is accepted.
-D, --debugEnable debug logging