Commands
Scanning Projects
Basic syntax:
clausi scan PATH [options]Common Options
| Flag | Description |
|---|---|
-r, --regulation | Regulation key (repeat for multiple) |
--mode ai | full | ai = lightweight analysis (default), full = deep scan |
--format pdf | html | json | all | Report format (use 'all' for PDF, HTML, and JSON) |
--template | Report template (default, detailed, executive) |
-o, --output | Output directory (otherwise uses config) |
--preset | NEW v1.0.0: Use clause preset (critical-only, high-priority) - saves 60-80% cost |
--ai-provider | NEW v1.0.0: Choose AI provider (claude, openai) |
--ai-model | NEW v1.0.0: Specify AI model (e.g., claude-3-5-sonnet-20241022) |
--open-findings | NEW v1.0.0: Auto-open findings.md in your default editor |
--show-markdown | NEW v1.0.0: Show markdown preview in terminal |
--show-cache-stats | NEW v1.0.0: Display cache statistics (shows cost savings) |
--max-cost | Maximum cost in dollars (e.g., --max-cost 1.00) |
--skip-confirmation | Skip the confirmation prompt |
--min-severity | Minimum severity to report (info, warning, high, critical) |
--ignore | Ignore files/directories (can be given multiple times) |
--show-details | Show per-file token estimates |
Examples
EU AI Act – Fast Scan
clausi scan . -r EU-AIA --mode aiGDPR Deep Scan, HTML Report
clausi scan /srv/app -r GDPR --mode full --format htmlScan Against Both Regulations, Use Detailed Template
clausi scan ~/project -r EU-AIA -r GDPR --template detailedOutput Files (v1.0.0)
Upon completion the CLI prints a table of findings and stores:
findings.md(NEW) – Main compliance findings report (auto-opens in your editor)traceability.md(NEW) – Code-to-clause mapping showing which files satisfy which clausesaction_plan.md(NEW) – Step-by-step remediation plan with prioritiescompliance_report.pdf– Executive PDF reportaudit_metadata.json– Summary of the scan session
Tip: Use --open-findings to automatically open findings.md in your editor after the scan completes.