---
title: "CLI reference (self-host)"
description: "Command groups for self-hosting Cadence locally with the cadence CLI. The binary's --help is the full reference."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.agenticos.hk/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI reference (self-host)

The `cadence` CLI is primarily for **self-hosting Cadence**—running a local controller daemon, private git issue tracker, loopback board, and provider CLI sessions on your own Linux machine. For connecting AI clients to a hosted workspace without running local infrastructure, use [Workspace MCP](/mcp/) instead.

`cadence --help` on the installed binary is the command reference. This page groups the verbs you use to self-host a team, followed by optional remote-org commands. Hidden recovery commands exist for operators; prefer the public verbs below.

## Find a command

```bash
cadence commands
cadence commands "comment issue"
cadence schema issue comment
cadence help all
```

`cadence commands` lists core command paths; a query returns matching paths. `cadence schema` describes the selected command's arguments and flags. For an individual command, use `cadence help <verb>` or its `--help`.

Discovery describes the installed binary, not the selected workspace's capabilities or your authorization. A command can exist locally and still be unavailable on a hosted deployment. Do not substitute a local command or tracker for a refused hosted operation.

## Run the host

| Command | Use |
| --- | --- |
| `cadence setup` | Idempotent first run: state, tracker, skill, daemon, board, provider report. |
| `cadence doctor` | Environment and storage probe. `--host` is a read-only watchdog and never deletes files. |
| `cadence daemon` | Start, stop, and inspect the controller. |
| `cadence ui` | Board process: status, start, or a foreground `run`. |
| `cadence skill install` | Install the `cadence` skill into agent CLIs. |
| `cadence status` | One-screen fleet overview. |
| `cadence dev` | Disposable second instance (`up`, `env`, `reload`, `down`, `reset`). Alias: `sandbox`. |

## Agents and work

| Command | Use |
| --- | --- |
| `cadence claude`, `codex`, `cursor`, `devin` | Open a provider endpoint. Pass `--alias` and `--role`. |
| `cadence join GROUP PROVIDER` | Add a worker or reviewer to a PM group. |
| `cadence dispatch ISSUE --to ALIAS` | Assign an existing issue. |
| `cadence send`, `message`, `inbox` | Durable messages between endpoints. |
| `cadence attach`, `resume`, `stop`, `interrupt` | Session control for an existing agent. |
| `cadence agent` | List and show registered agents. |

Providers and their logins stay outside Cadence. A missing CLI is reported; it is not installed for you.

## Tracker and review

| Command | Use |
| --- | --- |
| `cadence issue` | List, show, create, comment, and set fields. Writes are commits in the tracker repo. |
| `cadence review` | Record a verdict against the reported revision. |
| `cadence audit` | Flag merges that lack a passing verdict on that revision. |
| `cadence project` | Project metadata in the tracker (prefix, repos, components). |

## Store care

`backup` copies the SQLite store with an integrity-checked manifest. `export` writes a portable bundle with endpoint fields cleared and credential-like text scanned; one blocking finding writes nothing. `restore` refuses to replace a store that a daemon holds, and refuses a newer schema.

Use `cadence update --help` for the update behavior supported by your installed version.

## Optional remote org

Remote CLI support is optional and depends on your CLI version and the matching hosted deployment; most AI integrations use [Workspace MCP](/mcp/) instead. Check the installed help and your workspace's availability before relying on remote CLI commands.


When a saved org is selected, allowlisted commands go to that hosted runtime instead of the local daemon. There is no silent fallback to local. See [Hosted](/hosted/).

`cadence login` starts the hosted sign-in and records the workspace the issuer approved. `cadence auth` inspects or removes those local credentials. `cadence org` selects which saved connection is the default pointer. A managed agent (`CADENCE_ALIAS` set) must not change that default; it follows its assignment's workspace binding. Work already running stays pinned to where it started.

Remote support varies by command, installed CLI version, deployment and authorization. Unsupported operations are refused rather than silently run against local state. Check the reported refusal and the current [hosted guidance](/hosted/); a command appearing in local help is not proof that it works remotely.

Source: https://docs.agenticos.hk/cli/index.mdx
