VulnScout CLI
The ./vulnscout script is the main host-side entry point for running VulnScout.
It manages the container lifecycle (Docker or Podman) and forwards commands to the container’s entrypoint.
This page introduces command syntax, options, and project/variant selection. For task-specific instructions, see VulnScout Workflow.
./vulnscout <command> [arguments] [options] [global options]
./vulnscout <command> --help
Releases before v0.24 used flags instead of commands. The flags were removed in v0.25; see Migrating from Legacy CLI Flags.
Commands
Command |
Purpose |
|
|
|---|---|---|---|
|
Import input files. Options repeat and mix; one call is processed as one import. |
default |
default |
|
Run the selected scanners together on the current data. Positional types ( |
default |
default |
|
Refresh EPSS, NVD, ENISA EUVD and GitHub Advisory data. |
optional; all data when omitted |
optional; needs |
|
Export one exact persisted refresh artifact to stdout. |
optional visibility filter |
optional; needs |
|
Exit 2 when a vulnerability matches the condition. |
optional; all variants of the project |
optional; needs |
|
Create pending AI assessments with the configured AI provider. Use |
optional; all variants of the project |
optional, repeatable; needs |
|
Record AI reviews of custom assessments with the configured AI provider, one per target; the assessments are never changed. Use |
required |
optional, repeatable; |
|
Generate reports. |
default |
optional; all variants when omitted |
|
Write |
default |
optional; all variants when omitted |
|
Export recorded field changes to stdout. |
optional; all data when omitted |
optional; needs |
|
Export each vulnerability’s latest refresh changes to stdout. |
optional; all data when omitted |
optional; needs |
|
Import custom VulnScout JSON data. |
default |
rejected (the file names its variants) |
|
Import custom OpenVEX assessments. |
default |
optional; the project’s only variant when omitted |
|
Import project and variant context. |
optional; retargets the file |
optional; needs |
|
Remove data from every project. |
rejected |
rejected |
|
List projects and variants, or past scans. |
rejected |
rejected |
|
Read and write |
rejected |
rejected |
|
Start the web UI on port 7275. |
rejected |
rejected |
|
Manage the container. |
rejected |
rejected |
|
Stage report images ( |
rejected |
rejected |
Global options can appear before or after the command:
Option |
Meaning |
|---|---|
|
Mount the local |
|
Help for the command, or the overview. |
|
Same as |
-p, --project <name> and -v, --variant <name> are command options, not global options. Place them after the command; see <command> --help and the -p and -v columns above. A command that does not use a scope exits with code 1 when given -p or -v.
Projects and Variants
VulnScout organises data into projects and variants. A project typically maps to a product, and variants represent different builds or architectures (e.g. x86_64, aarch64).
Select them with -p, --project and -v, --variant. Each command documents how it uses them (see Commands); commands that do not use a scope reject these options.
./vulnscout <command> -p <name> -v <name>
Example:
./vulnscout add -p demo -v x86 \
--spdx "$(pwd)/example/yocto-wrynose-spdx3/core-image-minimal-qemux86-64.rootfs.spdx.json" \
--cve-check "$(pwd)/example/yocto-wrynose-spdx3/core-image-minimal-qemux86-64.rootfs.json"
AI Commands and the Web Server
assess and review use the web server’s AI queue when ./vulnscout serve is
running, and run in their own process otherwise:
./vulnscout serve
./vulnscout assess -p demo --cve CVE-2024-3094 # queued in the web UI, origin CLI
./vulnscout stop
./vulnscout review -p demo --cve CVE-2024-3094 # runs in process
With
serve: the run’s requests appear in every tab’s Conversations and wait behind the actions already queued there; chat messages are not delayed. The command follows them and prints the usual report and exit code. While the server is still starting, the command waits up to 60 s for it.Without
serve: the command runs the agent turns itself and first printsnote: web server not running; this run is not visible in the web AI queueon stderr.Ctrl-C (or SIGTERM in CI) cancels the current agent turn, keeps what it already saved, prints the summary and exits 1. With
serve, only the requests this run created are stopped (the waiting ones are removed from the queue); other requests continue, including those it was only following. A second Ctrl-C stops the command immediately without a summary.
Export Vulnerability Changes
Export the field history already recorded by VulnScout, either within a time window or from each vulnerability’s latest refresh:
./vulnscout export vulnerability-history \
--since 2026-10-01T00:00:00Z --until 2026-10-02T00:00:00Z \
--format json > changes.json
./vulnscout export vulnerability-history -p demo -v x86 \
--since 2026-10-01T00:00:00Z --source nvd,epss \
--format csv > changes.csv
./vulnscout export vulnerability-history -p demo --last-refresh \
--format csv > last-refresh.csv
--since is inclusive; optional --until is exclusive and must be later.
Timestamps without a timezone mean UTC. --last-refresh replaces the time
window and cannot be combined with --since or --until: for each
vulnerability, it exports the changes made by the most recent refresh run
(./vulnscout refresh, a scan with refresh, or a refresh started from the web
interface) that updated it. Refreshes recorded by the CLI or a single-vulnerability
refresh before this option existed carry no run identifier and are not
considered. Optional --source (repeatable or
comma-separated), --field, and --vuln-id filters narrow the selection.
Without -p, all vulnerabilities are eligible. With -p/-v, the selection
uses the vulnerabilities in the current active scope, not historical
project membership. Unknown projects or variants fail instead of exporting
unscoped data. Explicitly empty or whitespace-only -p/-v names are rejected;
omit the option to leave that scope unrestricted.
JSON includes the time bounds, the last_refresh mode, total and history
entries. CSV contains one row
per field change, with JSON-encoded old/resulting values. Successful exports
write only the document to stdout; errors exit nonzero. No changes produces an
empty JSON history or a CSV header, not an error.
For CI, --last-refresh reports what the last refresh changed for each
vulnerability. To bound the export to one exact invocation instead, record
timestamps around a refresh and preserve its exit status:
since="$(date -u +%Y-%m-%dT%H:%M:%S.%NZ)"
status=0
./vulnscout refresh -p demo -v x86 || status=$?
until="$(date -u +%Y-%m-%dT%H:%M:%S.%NZ)"
./vulnscout export vulnerability-history -p demo -v x86 \
--since "$since" --until "$until" --format json > changes.json || exit $?
exit "$status"
This exports changes within a time window, not the outcome of an exact invocation: concurrent operations can contribute changes, and an empty export does not establish that providers completed successfully. Exports depend on retained vulnerability history; archive the files externally if needed.
Direct Python deployments can use
flask --app src.bin.webapp export-vulnerability-history --since <timestamp> --format csv --output changes.csv
(or --last-refresh instead of --since).
See Vulnerability History for the corresponding
HTTP export.
Source evidence and CVE refinement
For imported SPDX 3 Build-profile evidence, the local engine also receives
compiled-source paths from the selected variant’s active SBOMs. When an advisory
identifies affected files, the engine can record a not_affected VEX assessment
if none were compiled. The finding remains available for review; it is not
deleted. Missing or incomplete build evidence retains ordinary matching, and
advisories without affected-file information cannot use this refinement.
This does not evaluate Kconfig expressions or infer release versions from Git
revisions. Yocto BitBake recipe inputs and SPDX 2 package/file inventories
remain available for inspection but cannot by themselves enable compiled-source
refinement. Compilation proof currently recognizes West Zephyr CMake compiler
targets with recorded compiler flags, not unknown, packaging, or generator-only
tasks. Unresolved containment and unaccounted artifact/package inputs disable
refinement rather than treating a partial source list as complete.
See Recorded files.
Shell completion
Bash completion for commands, options and fixed values (scan types, export and import kinds, --format, --timestamps):
source <(vulnscout completion bash)
It is registered for vulnscout (on PATH) and ./vulnscout. For any other invocation path, register it too, for example complete -F _vulnscout_complete /opt/tools/vulnscout. Add the line to ~/.bashrc to make it permanent. Project and variant names are not completed.