exec
Run a command in a box| Argument / option | Description |
|---|---|
<FORK> | 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 |
|---|---|
<FORK> | 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 |
|---|---|
<FORK> | 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. |
console
Open an interactive shell or run a command with a TTY| Argument / option | Description |
|---|---|
<FORK> | 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 |
|---|---|
<FORK> | 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 |
|---|---|
<FORK> | 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 |
|---|---|
<FORK> | 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. |