CycloneDX CLI
$ cyclonedx Foundation Low RiskThe official CycloneDX CLI (cyclonedx) validates SBOMs against CycloneDX schemas, converts between JSON, XML, Protobuf, CSV, and SPDX JSON, diffs BOMs, merges multi-service BOMs, and signs/verifies artifacts. Explicit --input-format, --output-format json, and --fail-on-errors flags make it reliable in automated supply-chain pipelines.
brew install cyclonedx-cli SBOM schema validation, format conversion, and BOM diffs run locally in milliseconds via cyclonedx with zero external API or MCP dependency.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --output-format json, --fail-on-errors, stdin/stdout pipes, and clean subcommands without interactive prompts.
- Native
--output-format jsononconvert,diff, andmerge --fail-on-errorsgives deterministic non-zero exit codes
Purely offline local SBOM manipulation with zero network calls or credentials.
- Offline schema validation and local file conversion only
Available via brew install cyclonedx-cli and self-contained release binaries for macOS, Linux, and Windows.
- Cross-platform Homebrew and GitHub release binaries
Comprehensive SBOM lifecycle swiss-army knife (validate, convert, diff, merge, sign, keygen).
- Supports CycloneDX v1.2–v1.6, XML, JSON, Protobuf, CSV, and SPDX JSON
Official OWASP CycloneDX foundation tool (CycloneDX/cyclonedx-cli) under Apache-2.0.
- OWASP CycloneDX official repository
Clear README command documentation and built-in --help across all subcommands.
- Documented in
CycloneDX/cyclonedx-cliREADME and--help
Security, Auth & Guardrails
No authentication required; signing/verifying operations read local PEM/RSA key files supplied via CLI flags.
100% free, offline, and open-source (Apache-2.0).
# CycloneDX CLI Agent Rules - Always pass `--fail-on-errors` with `cyclonedx validate` so invalid SBOMs fail the command exit code. - Specify `--input-format` and `--output-format json` explicitly rather than relying on file extension inference. - Write converted or merged SBOMs to a new `--output-file` path instead of overwriting inputs.
Agent-Ready Command Recipes
Safe Read-Only Queries
cyclonedx validate --input-file bom.json --input-format json --fail-on-errors
Validates bom.json against the CycloneDX schema and exits non-zero if validation errors are found.
cyclonedx diff old-bom.json new-bom.json --output-format json
Compares component additions, removals, and version changes between two SBOMs in JSON format.
Controlled Writes & Previews
cyclonedx convert --input-file bom.xml --input-format xml --output-file bom.json --output-format json
Converts an XML SBOM into a separate CycloneDX JSON file without altering bom.xml.
Strengths for Agents
- + Official OWASP reference CLI for CycloneDX validation, diffing, merging, and format conversion.
- + Offline execution with
--output-format jsonand--fail-on-errorsCI exit codes.
Caveats & Pitfalls
- ! Does not generate SBOMs from source code or container images itself (pair with
syft,trivy, or language BOM plugins). - ! Default
validatebehavior may not fail exit code unless--fail-on-errorsis explicitly passed.