Docs/ CLI Reference

CLI Reference

Every command available in @0ctx/cli. Most users only needenable and status.

Core commands

CommandDescription
0ctx enableBind a repo, start the daemon, install hooks, and bootstrap retrieval
0ctx statusShow daemon health and repo readiness
0ctx versionPrint the CLI version

Inspection

CommandDescription
0ctx workstreams --repo-root .List workstreams in the current repo
0ctx sessions --repo-root .List captured sessions
0ctx checkpoints --repo-root .List saved checkpoints

Hooks

CommandDescription
0ctx hook statusShow installed capture hooks for the current repo

hook commands are the supported capture-management surface. Older connector hook installs still work as compatibility aliases but are not part of the normal flow.

Repair & diagnostics

CommandDescription
0ctx doctor --jsonFull machine and repo diagnostics as JSON
0ctx repairAuto-repair common issues (hooks, daemon, retrieval)
0ctx setupAdvanced machine setup workflow

Bootstrap

CommandDescription
0ctx bootstrap --clients=gaRe-bootstrap retrieval for GA agents
0ctx bootstrap --clients=ga --dry-runPreview what bootstrap would do
0ctx bootstrap --clients=ga --jsonMachine-readable bootstrap output

Enable options

# Standard enable
0ctx enable

# Enable with a specific data policy
0ctx enable --data-policy=review
Most users

Most users should not need anything beyond 0ctx enable and 0ctx status. The daemon handles capture, retrieval, and workstream management automatically.