Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NetRiseInc/provenance-cli/llms.txt
Use this file to discover all available pages before exploring further.
All commands require a Provenance API token. Set
PROVENANCE_API_TOKEN before running any provenance command. See Authentication for details.Install the CLI
Download the pre-built binary for your platform and move it onto your See Installation for all supported platforms, the musl/aarch64 Linux variants, macOS (Intel and Apple Silicon), and instructions for building from source.
PATH.Set your API token
Export your Provenance API token as an environment variable. Every command reads this token automatically.You can also set the token in
~/.config/provenance/config.yaml or pass it per-command with --token. See Authentication.Test connectivity
Verify that the CLI can reach the Provenance API and that your token is valid.A successful response confirms the API URL and token are working correctly.
Query a package
Look up a package by its PURL (Package URL) to see provenance data, contributor information, and advisory exposure.Add
--health to also fetch repository health metrics such as bus factor, OpenSSF Scorecard score, and commit recency.Scan an SBOM
Parse an SBOM file and query every package against the API concurrently. Format is auto-detected from the file content.Supported formats: CycloneDX JSON/XML, SPDX JSON/tag-value, CSV. See scan sbom for all options.
Run a policy check
Evaluate an SBOM against one or more YAML policy files. Returns a non-zero exit code when violations are found, making it suitable for CI/CD pipelines.Exit code
1 means at least one deny rule matched. Exit code 2 means at least one review rule matched. Exit code 0 means all checks passed. See Policy engine and Exit codes.Next steps
Installation
All platforms, build-from-source instructions, and shell completions.
Authentication
Config file, environment variables, and legacy token support.
Command reference
Every command, subcommand, and flag documented in detail.
Policy engine
Write YAML policies to gate CI/CD on supply chain risk indicators.