unContainer

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 [].

FieldTypeDescription
idstringSession ID for session close.
branchstring · nullBranch at startup.
worktreestringAbsolute path of the worktree.
worktreeStatestringpresent, worktree removed, path replaced or path unavailable.
distrostringEffective distro.
profilestring · nullProfile used to open it.
cachesstring[]Named caches. Omitted when none.
cpusnumbervCPUs.
memoryMiBnumber · nullGuest RAM allocation.
rssBytesnumber · nullResident size of the host process.
uptimeSecondsnumber · nullTime since boot.
networkobject{ mode, allow: [{ host, port }] }, mode none, full or allow.
forwardsobject[]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

FieldTypeDescription
retainedBytesnumberTotal size of retained snapshots.
limitBytesnumber · nullcacheMaxSize in bytes, or null when unlimited.
snapshotsobject[]{ name, distro, bytes } per snapshot.