CLI

The person's command line for projects, deliveries, tasks, requests and improvements.

The CLI acts across all projects in the same database (--db or PETAL_DB). Add --json for machine-readable output, and run petal <command> --help for the flags.

Command What
petal project add|list|usage Register a folder, list projects, set the usage policy.
petal delivery create|list|show|phase|spec Deliveries. show includes tasks, requests and observations.
petal task add|list|set|edit|move|remove The task tree: status, rename, move (--parent, --root, --position), remove with descendants.
petal request ask|answer|withdraw|list|check Questions, approvals and gate checks.
petal review request Request a merge review (--revision).
petal observe <delivery> <body> Add an observation to a delivery.
petal message list|send|ack Messages between you and agents.
petal signal record|list Correction and preference signals (--kind, --topic, --delivery).
petal improve list|show|draft|edit|apply|discard Improvements drafted from signals.
petal app list|save|delete Project applications.
petal env list|save|delete Environments of an application.

Server commands

Command What
petal serve Local API, dashboard and test runner on 127.0.0.1:7777. --open opens the browser.
petal mcp MCP server over stdio for one agent connection. See Connect an agent.
petal serve-hosted Hosted mode (feature hosted). See Hosted mode.

Confirmations and conflicts

Commands that edit an existing entity take --expected-version <n> and fail with a conflict when the entity changed since.

Approvals, improvement decisions and usage changes need an interactive terminal: apply and discard ask you to type a confirmation.