Skip to main contentSkip to navigation
Command Line Interface

One command.
Complete insight.

The Guardrail CLI gives you instant visibility into your codebase health, security vulnerabilities, and production readiness.

$ npm install -g @guardrail/cli

Powerful Commands

Everything you need to ship with confidence.

guardrail ship

Zero-config audit with GO/NO-GO verdict

--fix--json--ci
$ guardrail ship --fix
guardrail scan

Static code analysis for security issues

--severity--output--ignore
$ guardrail scan --severity high
guardrail reality

Browser testing with Playwright

--url--auth--flows--ci--threshold
$ guardrail reality --url https://myapp.com --flows auth
guardrail context

Generate AI context for your codebase

--prune--max-tokens--diff--file
$ guardrail context --prune --max-tokens 8000
guardrail gate

CI/CD deploy blocking based on scan results

--threshold--block--allow
$ guardrail gate --threshold 80
guardrail autopilot

Continuous protection on every push

--schedule--notify--auto-pr
$ guardrail autopilot --schedule weekly

Built for Modern Teams

Enterprise-grade features, developer-friendly experience.

Security Scanning

Detect vulnerabilities, exposed secrets, and security misconfigurations automatically.

Reality Mode

Test your app like a real user with Playwright-powered browser automation.

Context Generation

Generate 26 context files for AI assistants, analyzing 1000+ files intelligently.

CI/CD Integration

Block deploys, generate SARIF reports, and integrate with GitHub Actions.

Auto-Fix

Automatically fix detected issues with AI-generated patches.

MockProof Gate

Prevent mock data and demo routes from reaching production.

Ready to ship with confidence?

Install the CLI and run your first scan in under a minute.