CLI Commands
caged up
Create and start a sandbox. Reads.caged.yaml if present in the current directory.
| Flag | Description | Default |
|---|---|---|
--template | Base image | node-20 |
--cpus | vCPU count | 2 |
--memory | Memory in MB | 512 |
--disk | Disk in GB | 5 |
--repo | Git repo to clone | — |
--budget | Max spend in USD | — |
--init | Init script to run | — |
--timeout | Idle timeout in seconds | 900 |
--network | Network mode: full, none, allowlist | full |
--config | Path to config file | .caged.yaml |
caged connect
Connect to a running sandbox’s terminal.caged ls
List all sandboxes.| Flag | Description |
|---|---|
--status | Filter by status: running, paused, all |
--format | Output format: table, json, yaml |
caged pause
Pause a running sandbox.caged resume
Resume a paused sandbox.caged destroy
Destroy a sandbox permanently.| Flag | Description |
|---|---|
--force | Skip confirmation prompt |
caged snapshot
Manage snapshots.caged ports
View detected ports and preview URLs.caged logs
View sandbox logs.| Flag | Description |
|---|---|
--follow, -f | Stream logs in real-time |
--tail | Number of lines to show (default: 100) |
--since | Show logs since timestamp or duration (e.g., 5m) |