OS Manuals

/usr/bin/sbom-convert

CLI tool based on the protobom library that converts Software Bills of Materials across formats (SPDX and CycloneDX).

From sbom-convert 0.0.8-r3 (os), captured 2026-11-05 by running sbom-convert --help (exit 0). permalink

Convert between CycloneDX and SPDX, or vice versa, including different specification versions.

Usage:
  sbom-convert convert [flags]

Aliases:
  convert, cv

Examples:

sbom-convert convert sbom.cdx.json         			output to stdout in inverse format
sbom-convert convert sbom.spdx.json -o sbom.cdx.json            output to a file
sbom-convert convert sbom.cdx.json -f spdx-2.3         		select to a specific format
sbom-convert convert sbom.cdx.json -f spdx -e text   	        select specific encoding


Flags:
  -e, --encoding string   the output encoding [spdx: [text, json] spdx3: [json] cyclonedx: [json]] (default "json")
  -f, --format string     the output format [spdx, spdx-2.2, spdx-2.3, spdx3, spdx-3.0.1, cyclonedx, cyclonedx-1.0, cyclonedx-1.1, cyclonedx-1.2, cyclonedx-1.3, cyclonedx-1.4, cyclonedx-1.5, cyclonedx-1.6, cyclonedx-1.7]
  -h, --help              help for convert
  -o, --output string     path to write the converted SBOM

Global Flags:
  -c, --config string   path to config file
  -v, --verbose count   log verbosity level (-v=info, -vv=debug, -vvv=trace)
Options (6)
OptionDescriptionSource
-e, --encoding stringthe output encoding [spdx: [text, json] spdx3: [json] cyclonedx: [json]] (default "json")help
-f, --format stringthe output format [spdx, spdx-2.2, spdx-2.3, spdx3, spdx-3.0.1, cyclonedx, cyclonedx-1.0, cyclonedx-1.1, cyclonedx-1.2, cyclonedx-1.3, cyclonedx-1.4, cyclonedx-1.5, cyclonedx-1.6, cyclonedx-1.7]help
-h, --helphelp for converthelp
-o, --output stringpath to write the converted SBOMhelp
-c, --config stringpath to config filehelp
-v, --verbose countlog verbosity level (-v=info, -vv=debug, -vvv=trace)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.