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
witnyxand the version.witnyx --versionprints that line alone, and so does--versionor-Von any command. - The second line names the cache folder:
--cache-dir, or the platform’s cache folder, aswitnyx cache updateexplains. - Each cached source then gets one line:
not cached,less than an hour old,N hours oldbelow 48 hours,N days oldfrom then on, ordated in the futurewhen 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.
Examples
Section titled “Examples”With an empty cache:
$ witnyx versioncisa-kev: not cachedenisa-euvd: not cachedendoflife-date: not cachedAfter 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.