Commands
witnyx has seven commands.
check runs the release security check on a software bill of materials (SBOM).
The others set up a repository, keep the cache of public data, print schemas and the version, serve coding agents, and send records to the hosted service.
| Command | What it does |
|---|---|
witnyx check |
Runs the release security check on an SBOM, prints the report and sets the exit code. |
witnyx init |
Creates .witnyx.yml, a SECURITY.md template and a GitHub workflow, and never changes a file that exists. |
witnyx cache update |
Downloads CISA KEV, ENISA’s exploited list and endoflife.date into the cache, for offline checks. |
witnyx schema |
Prints the JSON Schema of a Witnyx document. |
witnyx version |
Prints the version, the cache folder and the age of each cached data source. |
witnyx mcp |
Starts an MCP server for coding agents on standard input and output. |
witnyx upload |
Sends an SBOM and its report to the hosted Witnyx service, which is in development. |
Every command accepts --help, and --help --format json prints the same reference as one JSON document, described by the command reference schema.
The usage, options and exit codes on these pages are generated from that reference, so they list exactly what the command accepts.
Every command exits with 0, 1 or 2, and only check exits with 1.
Exit codes explains each one, and Error codes each error a command can print.
The witnyx command itself takes only the options below.
Without a command, it prints its usage.
Usage
witnyx [-hV] [--format=FORMAT] [COMMAND]Options
| Option | Value | Default | Description |
|---|---|---|---|
-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. |
Subcommands
| Command | Description |
|---|---|
check |
Run the release security check on an SBOM. |
upload |
Send an SBOM, and the report that check wrote for it, to the hosted Witnyx service, which records the deploy. The key is read from WITNYX_API_KEY. A failed upload prints a warning and exits 0, unless --require-upload is given, and is reported with the next upload that succeeds. |
init |
Create .witnyx.yml, a SECURITY.md template and a GitHub workflow in the repository. Existing files are never changed. |
mcp |
Start an MCP server for coding agents on standard input and output. It runs until the client closes standard input. |
cache |
Manage the cache of public data. |
schema |
Print the JSON Schema of the report, the error document, .witnyx.yml, the init plan, the command reference or the upload document. |
version |
Print the version, the cache folder and the age of each cached data source. |
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.