Skip to main content

CLI Reference

cve-lite [path] [options]
cve-lite advisories sync [options]
cve-lite config <set|unset|show> [key] [value]
cve-lite install-skill

path defaults to the current directory if omitted.


Scan options

FlagDefaultDescriptionExample
--prod-onlyoffExclude dev dependencies from the scancve-lite . --prod-only
--min-severitymediumOnly show findings at or above this severity (critical, high, medium, low)cve-lite . --min-severity high
--alloffShow all findings including low and unknown; appends a full table in compact modecve-lite . --all
--search-depth4How many directory levels deep to search for a lockfilecve-lite . --search-depth 2
--batch-size100Number of packages sent per OSV API requestcve-lite . --batch-size 50

Output options

FlagDefaultDescriptionExample
--verboseoffFull output: severity table, fix plan, findings table, coverage notescve-lite . --verbose
--jsonoffMachine-readable JSON output (suppresses all other output)cve-lite . --json
--sarifoffWrite SARIF 2.1.0 output to a timestamped .sarif file; can be combined with --json; cannot be combined with --reportcve-lite . --sarif
--cdxoffWrite CycloneDX 1.4 SBOM to a timestamped .cdx.json file; can be combined with --json and --sarif; cannot be combined with --reportcve-lite . --cdx
--report[=<path>]off / ./cve-reportGenerate an HTML report; optional path sets output directory (default ./cve-report); opens in browser by default; cannot be used with --jsoncve-lite . --report
cve-lite . --report ./reports
--no-openoffGenerate the HTML report without opening it in the browsercve-lite . --report --no-open

Offline options

FlagDefaultDescriptionExample
--offlineoffUse the local advisory DB only — no OSV API callscve-lite . --offline
--offline-db=<path>autoPath to a specific advisory DB filecve-lite . --offline-db ./advisories.db

Sync the local advisory DB with:

cve-lite advisories sync
cve-lite advisories sync --output ./advisories.db # write to a specific path

See Offline Advisory DB for the full offline workflow.


Network / SSL options

FlagDefaultDescriptionExample
--ca-cert=<path>-Path to a PEM CA certificate file for corporate SSL inspection proxiescve-lite . --ca-cert ~/corp-ca.crt
--osv-url=<url>OSV APIUse a custom OSV-compatible endpoint instead of the public APIcve-lite . --osv-url https://osv.example.com

For networks with SSL inspection, save the certificate path once so you do not need to pass the flag on every scan:

cve-lite config set ca-cert /path/to/corporate-ca.crt

See Corporate SSL Proxy for the full setup workflow.


CI / Automation options

FlagDefaultDescriptionExample
--fail-oncriticalExit with code 1 if any finding meets or exceeds this severity (critical, high, medium, low); exit 0 otherwisecve-lite . --fail-on high
--fixoffAuto-apply direct-dependency fix commands (direct deps only, v1); cannot be used with --jsoncve-lite . --fix
--usageoffScan source files to detect which packages are actually importedcve-lite . --usage
--only-usedoffShow only findings for packages that are imported in source code (implies --usage)cve-lite . --only-used

Note: --usage-hints is a deprecated alias for --usage.

See Workflow Integration for CI/CD patterns and GitHub Actions templates.


Cache options

FlagDefaultDescriptionExample
--cache-dir=<path>~/.cache/cve-liteUse a specific directory for the advisory response cachecve-lite . --cache-dir ./.cache
--no-cacheSkip the query cache and fetch fresh results from OSV for this scancve-lite . --no-cache

To clear the cache manually, delete ~/.cache/cve-lite/osv-vulns.json. The next scan will re-fetch advisories from OSV.

Query cache entries expire after 30 minutes. Use --no-cache to force a fresh query immediately without waiting for the TTL. See the Caching guide for full details including false negative and false positive risk.


Other commands

config

cve-lite config set ca-cert <path> # Save a CA certificate path
cve-lite config unset ca-cert # Remove the saved CA certificate path
cve-lite config show # Print current config and config file location

Manages persistent CLI configuration stored in ~/.cve-lite-cli/config.json. Currently supports one key:

KeyDescription
ca-certPath to a PEM CA certificate for corporate SSL inspection proxies

The file must be a valid PEM certificate (starting with -----BEGIN CERTIFICATE-----). CVE Lite CLI validates the file exists and is readable before saving.

See Corporate SSL Proxy for the full workflow.


install-skill

cve-lite install-skill

Writes AI assistant skill files into the current project directory for Claude Code, Codex CLI, Gemini CLI, Cursor, and GitHub Copilot. Commit the generated files to share them with your team.

See the AI Assistant Integration guide for the full workflow.