Developers / cli · v3.1.3
CLI Reference
Complete reference for the devwf CLI, flags, exit codes, and JSON output contracts.
CLI-First Contract
Every operational workflow capability is exposed through the devwf CLI (bin/cli.js, cli/args.js, cli/commands.js) before or alongside web/mobile UIs.
Exit codes: 0 on success, 1 on refusal, validation failure, or runtime error.
| Command | Purpose | Key Flags |
|---|---|---|
| devwf doctor | Verify Node.js, security mode, SQLite storage, and local-first execution | --json |
| devwf setup | Initialize local-first profile while preserving any existing Zettly connection | --skip-zettly, --dry-run, --json |
| devwf zettly status|skip|connect|switch|disconnect|doctor | Manage optional per-user Zettly integration without affecting local history | --url <url>, --token-stdin, --confirm, --json |
| devwf pair | Generate pairing challenge for the optional Android Companion | --url <url>, --json |
| devwf fleet doctor | Inspect MCP client configs and stdio health | --json |
| devwf fleet status | Inspect machine convergence and toolCatalogDigest | --json |
| devwf fleet upgrade | Stage or apply controlled runtime upgrades | --all, --resume, --dry-run, --authorize, --json |
| devwf list | List sessions from configured monitor | --json |
| devwf close | Mark one explicit session closed | --session <key>, --dry-run |
| devwf drop | Drop a task with an explicit reason | --session <key>, --reason <r>, --dry-run |
| devwf complete | Complete a task whose DoD is proven | --session <key>, --next-steps <s>, --dry-run |
| devwf share list|revoke | List or revoke read-only share links | --token <t>, --orphans, --dry-run |
Generated CLI Usage (cli/args.js)
Registered top-level commands: list, close, share, drop, complete, checkpoint, help, version, doctor, pair, fleet, identity, setup, zettly, governance, audit · Fleet verbs: status, check, plan, stage, activate, verify, rollback, doctor, upgrade.
devwf - close sessions and cards without the web monitor
Usage:
devwf doctor Check environment, node, and storage diagnostics
devwf setup [--skip-zettly] [--json] Initialize local-first profile (preserves existing Zettly)
devwf zettly status|skip|connect|switch|disconnect|doctor
Manage optional per-user Zettly integration
devwf pair [--url <url>] [--json] Generate pairing challenge for mobile companion
devwf list List sessions from the monitor
devwf close --session <key> [--dry-run] Mark one session closed
devwf share list List live share links
devwf share revoke --token <t> [--dry-run] Revoke one share link
devwf share revoke --orphans [--dry-run] Revoke every orphan link
devwf drop --session <key> --reason <r> [--dry-run]
Drop a task without completing it
devwf complete --session <key> [--next-steps <s>]... [--dry-run]
Complete a task whose DoD is proven
devwf checkpoint --session <key> [--summary <s>] [--dry-run]
Write and verify a task checkpoint before a restart
devwf identity --dir <path> [--against <path>] [--json]
Print the repository identity contract and
whether <path> may start a task against --against
devwf governance validate [--policy all] [--base <ref>] [--state <path>] [--json]
Run headless CLI-First & Documentation governance gate
devwf governance policies [--json] Print central governance policies and digest
devwf audit --url <url> [--checks <list>] [--max-pages <n>] [--timeout <ms>]
[--fail-on error|warn|none] [--parity-prefix <p>] [--include-external]
[--json] [--out <file>]
Audit a website read-only: headers, SEO,
links, static a11y and language parity
devwf --help | --version
Environment:
DEVWF_MONITOR_URL Base URL of the central monitor (required)
DEVWF_MONITOR_TOKEN Write token for the monitor (required for writes)
Rules:
--session is mandatory for every command that changes anything. There is no
"current session" default, so a missing target is always a refusal.
--dry-run prints what would change and writes nothing.
No command ever signals a process. close only marks the session closed.
Exit codes:
0 success 1 refusal or failure