Skip to content

docs/Reference

CLI

Every command, option, request profile and exit code.

#Commands

CommandWhat it does
kagicyber audit <domain or url>Audit a live website with passive checks
kagicyber scan [dir]Scan a project: secrets in the tree and git history, dependencies, code patterns, CI/CD, infrastructure as code
kagicyber rules [--json]List the jurisdictions and checklists in the rule base
kagicyber serve [--port 8787]Start the self-hosted HTTP API
kagicyber --version, --helpVersion and help

#Audit options

OptionWhat it does
--browserReal-browser test with Playwright: cookies and requests before any click, banner buttons, rendered pages, LCP and CLS
--profile <name>Request pacing: quiet, balanced (default) or fast
--country <code>Jurisdiction for maximum penalties, for example PL, DE, FR or GB (default: detected)
--include <codes>Also apply these jurisdiction modules, for example DE,FR,US
--type <types>Add site-type checklists: shop, saas, fintech (default: detected)
--subdomainsCertificate-transparency subdomain discovery and takeover check
--no-dnsSkip the deep DNS checks (DKIM, MTA-STS, TLS-RPT, DNSSEC)
--repo <dir>Also scan the site's repository and merge the findings
--md <file>Write the Markdown report
--html <file>Write a self-contained HTML report
--prompt <file>Write the fix prompt alone
--json [file]Print JSON, or write it to a file
--sarif <file>Write SARIF 2.1.0 for GitHub code scanning
--junit <file>Write JUnit XML for CI dashboards
--out <dir>Write the Markdown, HTML, JSON, SARIF and fix prompt into one directory
--baseline <file>Compare with an earlier --json result: new and fixed findings
--ignore <ids>Comma-separated check IDs or fingerprints to ignore (also read from .kagicyberignore)
--badgePrint a README badge for the security grade
--fail-on <level>Exit 1 if a finding is at or above critical, high, medium or low (with a baseline: only new findings)
--fail-under <n>Exit 1 if the compliance score is below n
--max-requests <n>Request budget (default depends on the profile)
--timeout <ms>Per-request timeout
--verboseShow passing rows and INFO findings in the terminal
--quietNo progress output

#Scan options

OptionWhat it does
--quickWorking tree only: skip git history, dependencies, code, CI/CD and IaC
--prompt <file>Write a fix prompt for the findings, with file and line
--json, --sarif, --junit, --fail-onAs for audit

#Request profiles

ProfileIn flight per hostRequests per secondUse it for
quiet12Fragile or rate-limited servers
balanced612Most sites (default)
fast1025Your own sites and CDNs

#Exit codes

CodeMeaning
0The audit or scan finished and nothing crossed --fail-on or --fail-under.
1A finding reached --fail-on, or the compliance score is below --fail-under.
2Usage error (unknown command, missing target) or the run failed.

#Environment

VariablePurpose
KAGICYBER_CHROME_PATHUse a specific Chrome or Chromium binary for --browser
KAGICYBER_API_KEYSComma-separated API keys for kagicyber serve
HOST, PORTListen address and port for kagicyber serve
KAGICYBER_DEBUGPrint stack traces on errors

#Examples

terminal
npx kagicyber audit example.comnpx kagicyber audit https://shop.example.de --browser --md audit.md --html audit.htmlnpx kagicyber audit my-site.com --repo ./my-sitenpx kagicyber audit example.com --json today.json --baseline last-month.jsonnpx kagicyber scan . --fail-on high --sarif kagicyber.sarif