# Commands Or API *A reference page: the commands you will reach for most, in one place.* CW offers the same runtime through CLI commands and MCP tools. Use `--json` or `--format json` when a script needs to read a CLI command's output. This page lists the common, stable command shapes — not the whole surface. The full list of every capability and its MCP tool is generated straight from the code and lives in [`docs/cli-mcp-parity.7.md`](https://github.com/coo1white/cool-workflow/blob/main/plugins/cool-workflow/docs/cli-mcp-parity.7.md). Read the exact counts there, so this page never drifts from the code. Use `cw help`, the top-level `cw --help` / `cw -h` flags, or `cw --help` for help on one command. ## Entry Points ```bash npx cool-workflow cw node plugins/cool-workflow/scripts/cw.js ``` ## First-Run Commands | Command | Purpose | | --- | --- | | `cw demo tamper` | Hermetic tamper-evidence proof. | | `cw quickstart architecture-review --repo PATH --question TEXT --agent-command builtin:claude` | Plan, drive, verify, and report a repo review. | | `cw quickstart architecture-review --repo PATH --question TEXT --preview` | Read-only projection of the next action. | | `cw quickstart architecture-review --repo PATH --question TEXT --resume` | Advance one step and print a continue line. | The `audit-run` token is a CLI-only alias for `quickstart`. ## App Commands | Command | Purpose | | --- | --- | | `cw app list` | List workflow apps. | | `cw app show ` | Show app metadata, inputs, phases, and task counts. | | `cw app validate ` | Validate an app manifest and workflow. | | `cw plan --repo PATH ...` | Create a run without driving all workers. | Eight apps ship in `apps/`. The five canonical lanes are `architecture-review`, `architecture-review-fast`, `pr-review-fix-ci`, `release-cut`, and `research-synthesis`; the examples and the golden-path proof are `pdca-blackboard-loop`, `workflow-app-framework-demo`, and `end-to-end-golden-path`. Use `cw app list` for the live set. See [Workflow Apps](Workflow-Apps.md) for when to use each one. ## Run Commands | Command | Purpose | | --- | --- | | `cw status ` | Show current run status. | | `cw graph ` | Inspect run graph. | | `cw dispatch --limit N` | Allocate worker scopes. | | `cw worker manifest ` | Read a worker manifest. | | `cw worker output ` | Accept and verify worker output. | | `cw commit --selection ` | Create a verifier-gated state commit. | | `cw report --show` | Render the saved report. | ## Registry And Recovery | Command | Purpose | | --- | --- | | `cw registry refresh --scope repo` | Rebuild the derived run index. | | `cw run search --scope home --text TEXT` | Search runs across registered repos. | | `cw run resume ` | Read-only next-action view. | | `cw run resume --drive` | Continue pending work through the agent drive loop. | | `cw --resume --run ` | Bare form of resume; needs the cwd inside the project, or `--repo `. | | `cw run export --output PATH` | Write a portable run archive. | | `cw run inspect-archive PATH` | Check an archive without importing. | | `cw run import PATH --target DIR` | Restore an archive under another repo. | | `cw run verify-import --cwd DIR --strict` | Re-prove restored digests and chains. | ## Verification | Command | Purpose | | --- | --- | | `cw telemetry verify ` | Re-prove telemetry ledger integrity. | | `cw telemetry verify --pubkey ` | Re-run ed25519 attribution checks. | | `cw audit verify ` | Re-prove the trust-audit hash chain. | See [Trust And Audit](Trust-And-Audit.md) for what these checks prove and what they do not prove. ## MCP MCP tools use `cw_` names and route through the same runtime entries. Examples: - `cw_app_list` - `cw_run_resume` - `cw_run_import` - `cw_run_verify_import` - `cw_report` - `cw_telemetry_verify` Generated manifests are kept in sync from `plugins/cool-workflow/manifest/plugin.manifest.json`. The load smoke test boots each generated MCP config and checks a JSON-RPC initialize plus `tools/list` round trip. See [MCP And Manifests](MCP-And-Manifests.md) for the generated vendor targets.