Quick Reference

For more detailed guides, see the basic and advanced guides.

Scan a Repo in the Background

rafter run --skip-interactive

Markdown Report Saved to File

rafter run --format md > security-report-$(date +%Y-%m-%d-%H-%M-%S).md

# Scan a Specific Repo and Branch
rafter run --format md --repo myorg/myrepo --branch main > security-report-$(date +%Y-%m-%d-%H-%M-%S).md

Scan and Count Vulnerabilities

rafter run | jq -r '.vulnerabilities | length // 0'

# Count critical vulnerabilities
rafter run | jq -r '.vulnerabilities[] | select(.level == "error") | .ruleId