Documentation CLI reference · Menu
Guardian CLI reference
This compact reference is based on help output from the CLI bundled with Guardian 1.0: Mobile Release Guardian 0.1.0rc1.
Core commands
| Command | Purpose |
|---|---|
guardian init | Initialize Guardian in a project. |
guardian detect | Detect project platform and structure. |
guardian scan | Run local project analysis. |
guardian doctor | Inspect the local Guardian environment. |
guardian release check | Run the release check workflow. |
guardian version | Print version information. |
Scan options
Terminal
guardian scan [OPTIONS] [project_path]
--format text|json|sarif|gitlab|html
--output <file>
--baseline <file>
--fail-on-new
--record-metrics
--metrics-dir <directory>More command groups
The bundled CLI also lists binary analysis, database import, SBOM, dynamic analysis, metrics, performance, plugins, workspace, dashboard, policy and configuration commands. Use each group’s --help before automation.
guardian review is not a command in this release.