CLI Commands

Complete reference for every Caret CLI command with flags and examples.

Overview

The Caret CLI is the primary interface for setup, supervision, and session review. Install globally with npm install -g @caret/cli.

caret <command> [options]

caret init

Initialize Caret in a project. Creates caret.config.json.

caret init [--force] [--agent <name>] [--minimal]
FlagDescriptionDefault
--forceOverwrite existing configfalse
--agentPre-configure for agentauto-detect
--minimalMinimal config onlyfalse

caret login

Authenticate with your Caret account.

caret login [--token <token>] [--check]

caret supervisor install

Install supervision hooks for an AI coding agent.

caret supervisor install --agent <name> [--global] [--force] [--dry-run]
FlagDescriptionDefault
--agentAgent: claude-code, cursor, codex, aiderrequired
--globalInstall globally for all projectsfalse
--dry-runPreview without installingfalse

caret supervisor status

Check supervisor and daemon status.

caret supervisor status [--json]

caret daemon start/stop/status

Manage the background daemon that handles hook requests.

caret daemon start [--port <number>] [--foreground] [--log-level <level>]
caret daemon stop [--force]
caret daemon status [--json]

caret run

Run an agent as a supervised subprocess.

caret run <command> [--intent <text>] [--tag <key=value>] [--no-upload] [--timeout <seconds>]

Example:

caret run claude --intent "Fix the login bug" --tag team=platform

caret sessions

List and inspect agent sessions.

caret sessions [--id <id>] [--limit <n>] [--status <status>] [--agent <name>] [--since <duration>] [--json] [--web]

caret health

Show health scores for projects or sessions.

caret health [--project <name>] [--period <duration>] [--breakdown] [--json]

caret cost

View cost tracking data.

caret cost [--period <duration>] [--by <dimension>] [--agent <name>] [--json]

caret diff

Show the file diff for a completed session.

caret diff <session_id> [--stat] [--scope] [--output <file>]

Global flags

FlagDescription
--helpShow help
--versionShow version
--verboseVerbose output
--quietSuppress non-error output
--no-colorDisable colors
--config <path>Path to config file
Was this helpful?