Skip to content

CLI reference

The cache-detective CLI has two commands: scan to analyze one or more URLs, and diff to compare two scans over time.

Terminal window
cache-detective <command> [flags]
cache-detective --help
cache-detective --version

scan exits 0 on success (even when findings were reported — see scan) and non-zero on a scan/reporting error. diff exits non-zero when findings were added or changed severity between the two scans.

FlagDescription
--sqa-opt-outOpt out of anonymous usage statistics and crash reporting