Skip to content

witnyx version

witnyx version prints the version of witnyx, the cache folder, and how old the cached copy of each data source is. Add its output to a bug report, and run it before a check with --offline to see whether the cache is recent.

  • The first line is witnyx and the version. witnyx --version prints that line alone, and so does --version or -V on any command.
  • The second line names the cache folder: --cache-dir, or the platform’s cache folder, as witnyx cache update explains.
  • Each cached source then gets one line: not cached, less than an hour old, N hours old below 48 hours, N days old from then on, or dated in the future when the copy’s date lies well ahead of this machine’s clock.

OSV has no line: check queries it live, so it has no cached copy.

With an empty cache:

Terminal window
$ witnyx version
cisa-kev: not cached
enisa-euvd: not cached
endoflife-date: not cached

After witnyx cache update, each of these lines gives the age of the copy instead.

See also: Work offline and Data sources.

Usage

witnyx version [-hV] [--cache-dir=DIR] [--format=FORMAT]

Options

Option Value Default Description
--cache-dir DIR Cache directory for public data (default: the platform’s cache folder).
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
--format FORMAT With --help: text (the default) or json, a machine-readable reference.

Exit codes

Code Meaning
0 Done.
2 Could not run: a usage error, an input error or a failed download.

Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.