sandbox command group manages the full lifecycle of OpenComputer sandboxes. The most common operations — create and ls — are also available as top-level shortcuts.
Create a Sandbox
oc create
Alias for oc sandbox create. Creates a new sandbox and prints its ID.
| Flag | Type | Default | Description |
|---|---|---|---|
--template | string | default | Template to use |
--timeout | int | 300 | Sandbox TTL in seconds |
--cpu | int | 1 | Number of vCPUs |
--memory | int | 1024 | Memory in MB |
--env | string | — | Environment variable (KEY=VALUE, repeatable) |
--metadata | string | — | Metadata (KEY=VALUE, repeatable) |
List Sandboxes
oc ls
Alias for oc sandbox list. Lists all sandboxes for your organization.
Get Sandbox Details
oc sandbox get <id>
Displays detailed information about a sandbox including status, resources, and timestamps.
Kill a Sandbox
oc sandbox kill <id>
Immediately terminates a sandbox. All data is lost unless a checkpoint was created.
Hibernate
oc sandbox hibernate <id>
Saves the sandbox’s full state (memory + disk) to S3 and stops the VM. The sandbox can be resumed later with wake.
Wake
oc sandbox wake <id>
Resumes a hibernated sandbox. All processes and state are restored exactly as they were.
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | int | 300 | New TTL in seconds after waking |