Skip to main content

Formats

The CLI merges components with the same identity, meaning the same PURL and version, into one. A package listed in both package.json and package-lock.json, or one that is both detected and declared, appears once. Different versions of the same PURL stay separate.

Converting formats offline

The sbom command converts between formats without contacting the API. It detects the input format from the file’s content:
Conversion is best-effort. The CLI drops any data the target format can’t represent and prints a warning. For example, SPDX 2.3 has no vulnerability model, so converting to spdx leaves out the vulnerabilities. sbom takes -f, --format (cyclonedx or spdx) and -o, --output.