CLI Reference
PromptGuard provides a command-line interface for managing prompts, running tests, and inspecting history.
Commands
promptguard init
Initialize PromptGuard in the current project. Creates the .promptguard/ directory for snapshots and configuration.
promptguard run
Execute a prompt defined in a YAML file.
promptguard test
Run regression tests against stored snapshots. Detects prompt drift and schema validation failures.
promptguard history
Show version history for tracked prompts.
promptguard diff
Compare two versions of a prompt's output.
promptguard stats
Display statistics: success rates, repair frequency, and drift metrics.