Skip to content

CLI reference

Control plane and UI for cloud-based custom agents

Every command below is extracted from src/cli/main.ts at the pinned upstream ref. Run warren --help for the same list from the binary you have installed.

refresh canopy and register one agent into warren’s cache

Terminal window
warren register-agent <name>
Argument Description
<name> canopy prompt name (must be tagged ‘agent’)

clone a GitHub repo into the projects root and persist it

Terminal window
warren add-project <git-url> [options]
Argument Description
<git-url> GitHub URL (https or git@)
Option Description Default
--default-branch <name> override the auto-detected default branch

spawn a one-shot run, tail events as NDJSON, and exit

Terminal window
warren run <agent> <project> [options]
Argument Description
<agent> registered agent name
<project> project id (prj_xxx)
Option Description Default
-p, --prompt <text> prompt text the agent receives required
--trigger <label> run trigger label cli
--provider <name> per-run override of agent frontmatter.provider
--model <name> per-run override of agent frontmatter.model

scaffold a .warren/ directory (triggers.yaml + config.yaml) in a project repo

Terminal window
warren init [options]
Option Description Default
--project <id> target a registered project by id (writes into its warren clone)
--cwd <path> target a directory on disk (defaults to process.cwd())
--default-role <name> pin defaults.defaultRole to this registered agent

.warren/ admin tools

Terminal window
warren config <subcommand>

Subcommands:

convert legacy .warren/defaults.json into the warren-5840 YAML layout (config.yaml + preview.yaml)

Terminal window
warren config migrate [options]
Option Description Default
--project <id> target a registered project by id (writes into its warren clone)
--cwd <path> target a directory on disk (defaults to process.cwd())

check warren’s environment: env vars, burrow socket, canopy clone

Terminal window
warren doctor [options]
Option Description Default
--no-auth skip the WARREN_API_TOKEN check (loopback dev mode)

database admin tools

Terminal window
warren db <subcommand>

Subcommands:

one-shot copy of a SQLite warren.db into a Postgres database

Terminal window
warren db migrate-to-postgres [options]
Option Description Default
--from <sqlite> source SQLite path or URL (bare path, sqlite://, file://, :memory:) required
--to <pg-url> target Postgres URL (postgres:// or postgresql://) required

dispatch and steer cloud plan-runs

Terminal window
warren plan <subcommand>

Subcommands:

dispatch a serial plan-run against a remote warren and tail events as NDJSON

Terminal window
warren plan run <plan-id> [options]
Argument Description
<plan-id> seeds plan id (pl_xxx)
Option Description Default
--project <id> project id (prj_xxx) required
--agent <name> registered agent name required
--prompt-template <text> per-child prompt template override
--ref <git-ref> git ref to clone child workspaces from
--provider <name> per-run override of agent frontmatter.provider
--model <name> per-run override of agent frontmatter.model
--no-follow dispatch and exit without tailing events
--output <mode> output mode: ndjson (default) or pretty ndjson

cancel a remote plan-run and its in-flight child run

Terminal window
warren plan cancel <plan-run-id> [options]
Argument Description
<plan-run-id> plan-run id
Option Description Default
--output <mode> output mode: ndjson (default) or pretty ndjson

render a plan-run’s child-state table with per-child cost + duration

Terminal window
warren plan status <plan-run-id> [options]
Argument Description
<plan-run-id> plan-run id
Option Description Default
--output <mode> output mode: ndjson (default) or pretty ndjson

list plan-runs, optionally filtered by project / state

Terminal window
warren plan list [options]
Option Description Default
--project <id> only plan-runs for this project (prj_xxx)
--state <state> only plan-runs in this state (queued|running|succeeded|failed|cancelled)
--output <mode> output mode: ndjson (default) or pretty ndjson

start the HTTP server (default in docker entrypoint)

Terminal window
warren serve [options]
Option Description Default
--no-auth boot without bearer-token auth (loopback only)