exec
Run a command in a box| Argument / option | Description |
|---|---|
<BOX_NAME> | Box name (use - for ephemeral) |
--user <USER> | Run command as a project user |
<CMD> | Command and arguments (use -- separator) (repeatable) |
--env <ENV> | Environment variable as KEY=VALUE (repeatable) |
--wd <CWD> | Working directory inside the box |
--sh | Run command via shell (treat args as a shell string) |
--bg | Run in background (detached, returns PID) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
ps
Show processes in a box| Argument / option | Description |
|---|---|
<BOX_NAME> | Box name (use - for ephemeral) |
--user <USER> | Run command as a project user |
<CMD> | Command and arguments (use -- separator) (repeatable) |
--env <ENV> | Environment variable as KEY=VALUE (repeatable) |
--wd <CWD> | Working directory inside the box |
--sh | Run command via shell (treat args as a shell string) |
--bg | Run in background (detached, returns PID) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
logs
View logs for a process in a box| Argument / option | Description |
|---|---|
<BOX_NAME> | Box ref. |
--pid <PID> | Process ID to view logs for (required) |
-l, --lines <LINES> | Number of lines to show (most recent) Defaults to 100. |
-f, --follow | Follow logs in real-time (like tail -f) |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
observability
Search and tail persisted deployment logs| Subcommand | Description |
|---|---|
logs | Search and tail Loki-backed logs |
traces | Search Tempo-backed traces |
trace | Fetch a single Tempo-backed trace by ID |
agent-env | Print Claude/Codex OpenTelemetry configuration for agent sessions |
logs
Search and tail Loki-backed logs| Argument / option | Description |
|---|---|
<BOX_NAME> | Optional box name to filter. When set, defaults —project to the current project |
-p, --project <PROJECT> | Project filter. Omit with no box to search across all projects and control-plane logs |
-s, --service <SERVICE> | Managed service label filter |
--pid <PID> | Background/service process PID label filter |
-q, --q <Q> | Text search applied to log lines |
--level <LEVEL> | Case-sensitive level label filter, for example INFO, WARN, ERROR, info, warn, error |
--job <JOB> | Loki job label filter, for example zomg-service, zomg-box-file, kubernetes-pod |
--component <COMPONENT> | Component label filter, for example service-log or box-file-log |
--since <SINCE> | Lookback window such as 5m, 1h, 2d, 1w. Defaults to 1h. |
-l, --limit <LIMIT> | Maximum log entries returned per query. Defaults to 200. |
-f, --follow | Poll continuously and print new entries |
--interval <INTERVAL> | Follow polling interval in seconds. Defaults to 2. |
--raw | Print raw log lines only |
-j, --json | Print JSON response for one-shot queries or JSON lines while following |
traces
Search Tempo-backed traces| Argument / option | Description |
|---|---|
<BOX_NAME> | Optional box name to filter. When set, defaults —project to the current project |
-p, --project <PROJECT> | Project filter. Omit with no box to search across all projects and control-plane traces |
--agent <AGENT> | Agent provider filter, for example claude or codex |
--session <AGENT_SESSION_ID> | Agent session ID filter |
--service-name <SERVICE_NAME> | service.name filter |
--model <MODEL> | Model attribute filter |
--tool <TOOL> | Tool attribute filter |
-q, --q <Q> | Raw TraceQL query. When set, attribute filters are ignored by Tempo |
--since <SINCE> | Lookback window such as 5m, 1h, 2d, 1w. Defaults to 1h. |
-l, --limit <LIMIT> | Maximum traces returned. Defaults to 20. |
--min-duration <MIN_DURATION> | Minimum trace duration, for example 100ms or 5s |
--max-duration <MAX_DURATION> | Maximum trace duration, for example 500ms or 10s |
-j, --json | Print the raw JSON response |
trace
Fetch a single Tempo-backed trace by ID| Argument / option | Description |
|---|---|
<TRACE_ID> | Trace ID |
--since <SINCE> | Optional lookback window to bound Tempo trace lookup |
-j, --json | Print the raw JSON response |
agent-env
Print Claude/Codex OpenTelemetry configuration for agent sessions| Argument / option | Description |
|---|---|
--agent <AGENT> | Agent configuration to print: claude, codex, or all. Defaults to all. |
-p, --project <PROJECT> | Project value to include in resource attributes |
--box-name <BOX_NAME> | Box value to include in resource attributes |
console
Open an interactive shell or run a command with a TTY| Argument / option | Description |
|---|---|
<BOX_NAME> | Box name (use - for ephemeral) |
--tty | Force interactive TTY mode |
--no-tty | Disable interactive TTY mode (pipe/script friendly) |
--raw | Force local terminal raw mode |
--no-raw | Disable local terminal raw mode |
--term <TERM> | TERM value inside console session (default: inherit TERM or xterm-256color) |
--user <USER> | Run console as a project user |
--command <COMMAND> | Command to run instead of login shell |
--wd <CWD> | Working directory inside the box |
--log-console-debug | Print console transport mode details to stderr |
-p, --project <PROJECT> | Target project. |
ssh
Connect to a box through the SSH gateway| Argument / option | Description |
|---|---|
<BOX_NAME> | Box to connect to (supports qualified refs like project:box) |
-p, --project <PROJECT> | Target project. |
--host <HOST> | SSH gateway hostname |
--port <PORT> | SSH gateway port. Defaults to 2222. |
--info | Print the resolved ssh command and exit (do not connect) |
<SSH_ARGS> | Extra args passed to ssh after -- (e.g. -- -v -i ~/.ssh/id_ed25519) (repeatable) |
port
Inspect and wait on listening ports in a box| Subcommand | Description |
|---|---|
list | List listening ports in a box |
wait | Wait for a port to start listening |
list
List listening ports in a box| Argument / option | Description |
|---|---|
<BOX_NAME> | Box ref. |
-p, --project <PROJECT> | Target project. |
-j, --json | Print the JSON response. |
--tcp | Show only TCP ports |
--udp | Show only UDP ports |
wait
Wait for a port to start listening| Argument / option | Description |
|---|---|
<BOX_NAME> | Box ref. |
<PORT> | Port number to wait for |
-p, --project <PROJECT> | Target project. |
--tcp | Wait for TCP port (default) |
--udp | Wait for UDP port |
--timeout <TIMEOUT> | Timeout in seconds (0 = wait forever) Defaults to 60. |
--interval <INTERVAL> | Poll interval in seconds. Defaults to 1. |
-j, --json | Print the JSON response. |