Reference
JSON output
Stable fields for scripts and agents. Each command prints a JSON array or object to stdout.
session list --json
An array of sessions sorted by worktree, or [].
| Field | Type | Description |
|---|---|---|
id | string | Session ID for session close. |
branch | string · null | Branch at startup. |
worktree | string | Absolute path of the worktree. |
worktreeState | string | present, worktree removed, path replaced or path unavailable. |
distro | string | Effective distro. |
profile | string · null | Profile used to open it. |
caches | string[] | Named caches. Omitted when none. |
cpus | number | vCPUs. |
memoryMiB | number · null | Guest RAM allocation. |
rssBytes | number · null | Resident size of the host process. |
uptimeSeconds | number · null | Time since boot. |
network | object | { mode, allow: [{ host, port }] }, mode none, full or allow. |
forwards | object[] | Published ports as { host, guest }. |
profile list --json
An array sorted by name with name, distro, cpus, network, and memoryMiB and caches when configured. Returns [] without a configuration.
cache stats --json
| Field | Type | Description |
|---|---|---|
retainedBytes | number | Total size of retained snapshots. |
limitBytes | number · null | cacheMaxSize in bytes, or null when unlimited. |
snapshots | object[] | { name, distro, bytes } per snapshot. |