Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Eljakani/ward/llms.txt
Use this file to discover all available pages before exploring further.
Global Flags
These flags are available for all Ward commands.Enable verbose output with detailed logging information.Short flag:
-vDisable colored output in the terminal. Useful for CI environments or when piping output.
Output mode and format(s). Controls whether Ward runs in interactive TUI mode or headless mode.Short flag:
-oValues:tui- Interactive terminal UI (default when TTY available)json- Generate ward-report.jsonsarif- Generate ward-report.sarif for GitHub Code Scanninghtml- Generate ward-report.htmlmarkdown- Generate ward-report.md- Comma-separated list for multiple formats:
json,sarif,html
tui, Ward runs in headless mode with styled text output.Scan Command Flags
These flags are specific to theward scan command.
Exit with code 1 if findings at or above the specified severity threshold are discovered.Values:
info, low, medium, high, criticalThe threshold is inclusive - specifying medium will fail on Medium, High, and Critical findings.This flag is essential for CI/CD pipelines to gate deployments based on security findings.When findings exceed the threshold, Ward exits with code 1 and displays a message like:
Path to a baseline file containing known findings to suppress.When a baseline is provided, only new findings (not present in the baseline) will be reported. This allows teams to acknowledge existing security issues while preventing new ones from being introduced.The baseline file is a JSON file generated by
--update-baseline.Save current scan findings as a new baseline file at the specified path.This generates a baseline file that can be used in subsequent scans with
--baseline to suppress known findings.Command Usage Examples
Interactive Scan
Headless Mode
CI/CD Pipeline
Baseline Workflow
Exit Codes
- 0 - Success (no findings above threshold, or no threshold set)
- 1 - Failure (findings exceed
--fail-onthreshold, or scan error)