You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-f, --format: (string, Required) The output format [spdx, spdx-2.3, cyclonedx, cyclonedx-1.4]
-h, --help:` help for convert
-o, --output: (string, optional) Path to write the converted SBOM. Default: stdout. A user can provide just a string for the filename (e.g "mybom"), which will create a file mybom.json. Users can also specify an SPDX tag-value format, e.g. myBOM.spdx.
Global Flags:
-c, --config: (string, optional) Path to config file
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 a specific target format
sbom-convert convert sbom.cdx.json -f spdx -e text select specific encoding
Architecture
The architecture of the CLI looks more or less like this:
flowchart TB
a2-->b2
b2-->c2
b2-->c3
subgraph "sbom-convert"
subgraph "End User CLI"
a2("internal/cmd")
end
subgraph "translate API"
b2("translate.Translator")
end
end
subgraph "protobom API"
c2("writer.Writer")-->c4("writer.Serializer")
c3("reader.Reader")-->c5("reader.Unserializer")
end
Loading
About
Example CLI project to demo API architecture and protobom library