Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

CycloneDX CLI

$ cyclonedx Foundation Low Risk
OWASP CycloneDX · Security & Secrets · Apache-2.0 · macos / linux / windows

The 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.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install cyclonedx-cli
CLI vs MCP Decision CLI Only

SBOM schema validation, format conversion, and BOM diffs run locally in milliseconds via cyclonedx with zero external API or MCP dependency.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports --output-format json, --fail-on-errors, stdin/stdout pipes, and clean subcommands without interactive prompts.

  • Native --output-format json on convert, diff, and merge
  • --fail-on-errors gives deterministic non-zero exit codes
Trust & Safety 24 / 25

Purely offline local SBOM manipulation with zero network calls or credentials.

  • Offline schema validation and local file conversion only
Setup & Portability 13 / 15

Available via brew install cyclonedx-cli and self-contained release binaries for macOS, Linux, and Windows.

  • Cross-platform Homebrew and GitHub release binaries
Utility & Efficiency 13 / 15

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
Maintenance & Lineage 9 / 10

Official OWASP CycloneDX foundation tool (CycloneDX/cyclonedx-cli) under Apache-2.0.

  • OWASP CycloneDX official repository
Docs & Verifiability 7 / 10

Clear README command documentation and built-in --help across all subcommands.

  • Documented in CycloneDX/cyclonedx-cli README and --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication required; signing/verifying operations read local PEM/RSA key files supplied via CLI flags.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (Apache-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Validate a CycloneDX JSON SBOM
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.

Diff two JSON SBOMs
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

Convert XML SBOM to CycloneDX JSON
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 json and --fail-on-errors CI exit codes.

Caveats & Pitfalls

  • ! Does not generate SBOMs from source code or container images itself (pair with syft, trivy, or language BOM plugins).
  • ! Default validate behavior may not fail exit code unless --fail-on-errors is explicitly passed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI