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
Thesbom command converts between formats without contacting the API. It detects the input
format from the file’s content:
spdx leaves out the
vulnerabilities.
sbom takes -f, --format (cyclonedx or spdx) and -o, --output.