CLI Reference
Every command available in @0ctx/cli. Most users only needenable and status.
Core commands
| Command | Description |
|---|
0ctx enable | Bind a repo, start the daemon, install hooks, and bootstrap retrieval |
0ctx status | Show daemon health and repo readiness |
0ctx version | Print the CLI version |
Inspection
| Command | Description |
|---|
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
| Command | Description |
|---|
0ctx hook status | Show 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
| Command | Description |
|---|
0ctx doctor --json | Full machine and repo diagnostics as JSON |
0ctx repair | Auto-repair common issues (hooks, daemon, retrieval) |
0ctx setup | Advanced machine setup workflow |
Bootstrap
| Command | Description |
|---|
0ctx bootstrap --clients=ga | Re-bootstrap retrieval for GA agents |
0ctx bootstrap --clients=ga --dry-run | Preview what bootstrap would do |
0ctx bootstrap --clients=ga --json | Machine-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.