Skip to content

CLI

The Warden CLI reviews local changes, manages skills, and helps configure GitHub integration.

Terminal window
warden [targets...] [options]

If no command is given, Warden runs the default analysis command. With no target, it reviews the current branch against the default branch.

These options are available at the root CLI level. Command-specific options are documented on each command page.

OptionPurpose
-C, --cwd <path>Run as if invoked from this directory.
-h, --helpShow help for a command.
-V, --versionShow version number.
Terminal window
warden # Review current branch changes
warden src/auth.ts # Analyze a specific file
warden src/api/ # Analyze a directory
warden @targets.txt # Analyze targets listed in a file
warden --staged # Analyze staged changes
warden HEAD~3..HEAD # Analyze changes in a git range
warden help add # Show command help

The CLI help text is defined in src/cli/help.ts. This reference mirrors that structured command metadata. If the CLI changes, update the help spec first and then update these pages from it.