VulnCheck Offline allows you to execute various CLI commands without using the API or requiring an internet connection. This significantly improves lookup performance and enables usage in restricted or offline environments.
In order to start using Offline, you need to sync the indices you'll be using locally. This is done using the offline sync
command
If you run vulncheck offline sync
for the first time without any parameters, you will be given an interactive prompt allowing you to choose which indices you want to cache.
x
or space
will select an index, /
allows you to search for a specific index.Once you have synced the indices, you can run any of the supported commands, for a list of what is currently supported run vulncheck offline
. To run an SBOM scan run vulncheck scan --offline
.
Once you have your indices selected and synced, vulncheck offline sync
will update any indices that are older than the backup.
vulncheck offline sync
daily to ensure you have the latest.vulncheck offline status
will give you a visual representation of which indices are synced and their last updated time.If you are unsure of which indices you need, just run the offline commands and the CLI will either prompt or error with the index that is required
There are several commands to help you manage your indices
vulncheck offline sync --choose
This will put you back in that interactive mode you started withvulncheck offline --purge
This will remove all indices from your local cachevulncheck offline --add index1,index2
This will add the specified indices without prompting