CLI
The Warden CLI reviews local changes, manages skills, and helps configure GitHub integration.
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.
Commands
Section titled “Commands”warden runAnalyze files, git refs, or current branch changes.warden initCreate config and GitHub workflow files.warden addAdd built-in, remote, or local skills.warden syncRefresh cached remote skills.warden buildCreate or refresh a generated skill.warden improveRevise an existing generated skill from feedback.warden runsInspect saved sessions and run logs.warden setup-appCreate a GitHub App for branded comments.
Global Options
Section titled “Global Options”These options are available at the root CLI level. Command-specific options are documented on each command page.
| Option | Purpose |
|---|---|
-C, --cwd <path> | Run as if invoked from this directory. |
-h, --help | Show help for a command. |
-V, --version | Show version number. |
Common Examples
Section titled “Common Examples”warden # Review current branch changeswarden src/auth.ts # Analyze a specific filewarden src/api/ # Analyze a directorywarden @targets.txt # Analyze targets listed in a filewarden --staged # Analyze staged changeswarden HEAD~3..HEAD # Analyze changes in a git rangewarden help add # Show command helpSource of Truth
Section titled “Source of Truth”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.