CLI reference
The cache-detective CLI has two commands: scan to analyze one or more URLs, and diff to compare two scans over time.
scan Analyze cacheability and live cache behavior for one or more URLs.
diff Compare two JSON scans to detect cache-config drift.
Global usage
Section titled “Global usage”cache-detective <command> [flags]cache-detective --helpcache-detective --versionscan 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.
Global flags
Section titled “Global flags”| Flag | Description |
|---|---|
--sqa-opt-out | Opt out of anonymous usage statistics and crash reporting |