Sandboxes and account
Cloud pools and local sandboxes, sign-in, status and cleanup.
Cloud pools and local sandboxes, sign-in, status and cleanup.
| Command | Description |
|---|---|
cb env | List or garbage-collect sandboxes and pools. |
cb env ls | List managed cloud pools and claims. |
cb env gc | Delete idle managed pools and stuck claims. |
cb login | Sign in for --on cloud (runs cua auth login). |
cb status | Show system status dashboard. |
cb prune | Clean up cua-bench run data (and 0.2.x image leftovers). |
Every command also accepts the global options.
cb env#List or garbage-collect sandboxes and pools.
cb env [COMMAND]Examples
# List managed cloud pools and claims
cb env ls
# Delete pools idle for an hour
cb env gc --idle 1hcb env ls#List managed cloud pools and claims.
cb env ls [OPTIONS]Alias: cb env list.
| Flag | Type | Default | Description |
|---|---|---|---|
--local | boolean | false | List local sandboxes instead. |
Examples
# List managed cloud pools and claims
cb env ls
# List local sandboxes
cb env ls --localcb env gc#Delete idle managed pools and stuck claims.
cb env gc [OPTIONS]| Flag | Type | Default | Description |
|---|---|---|---|
--idle | string | 30m | Delete pools unused for this long (default 30m). |
Examples
# Delete pools unused for 30 minutes
cb env gc
# Delete pools idle for two hours
cb env gc --idle 2hcb login#Sign in for --on cloud (runs cua auth login).
cb login [OPTIONS]| Flag | Type | Default | Description |
|---|---|---|---|
--no-browser | boolean | false | Print the sign-in URL only. |
Examples
# Sign in with a browser
cb login
# Print the sign-in URL instead of opening a browser
cb login --no-browsercb status#Show system status dashboard.
cb statusExamples
# Show runs, sandboxes and credentials at a glance
cb statuscb prune#Clean up cua-bench run data (and 0.2.x image leftovers).
cb prune [OPTIONS]| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--keep | integer | With --runs: keep the N newest runs and remove only older ones. | ||
--older-than | number | With --runs: remove only runs older than DAYS. | ||
--all | -a | boolean | false | Remove runs and 0.2.x image leftovers. |
--images | boolean | false | Remove 0.2.x stored images (deprecated store). | |
--overlays | boolean | false | Remove 0.2.x task overlays (deprecated store). | |
--runs | boolean | false | Remove run logs and registry. | |
--docker | boolean | false | Deprecated: cua-bench no longer creates Docker resources. | |
--dry-run | boolean | false | Show what would be deleted without deleting. | |
--force | -f | boolean | false | Skip confirmation prompts. |
Examples
# Preview what would be removed
cb prune --all --dry-run
# Remove run logs without asking
cb prune --runs --force
# Keep the 20 newest runs, delete the rest
cb prune --runs --keep 20
# Delete runs older than 30 days
cb prune --runs --older-than 30| Code | Meaning |
|---|---|
0 | Success: every variant completed. |
1 | Failure: a variant failed or was cancelled, or the command could not run. |
2 | Usage error: an unknown command, flag or value. |
130 | Interrupted (Ctrl-C); running variants are cancelled. |