Generate an SBOM
Supported formats
| Format | Standard | Notes |
|---|---|---|
cyclonedx-json | CycloneDX 1.5 | JSON; widely supported. The default. |
cyclonedx-xml | CycloneDX 1.5 | XML; legacy-compatible. |
spdx-json | SPDX 2.3 | JSON; Linux Foundation standard. |
spdx-tag-value | SPDX 2.3 | Tag-value; human-readable. |
Supported manifests
sbom generate reads these dependency manifests:
| Ecosystem | Manifests |
|---|---|
| npm | package.json, package-lock.json |
| pip | requirements.txt, Pipfile, pyproject.toml |
| go | go.mod, go.sum |
| cargo | Cargo.toml, Cargo.lock |
| maven | pom.xml |
| gem | Gemfile, Gemfile.lock |
| composer | composer.json, composer.lock |
| nuget | packages.config, *.csproj |
--include-dev.
Options
| Option | Description |
|---|---|
-f, --format | Output format (default cyclonedx-json). |
-o, --output | Write to a file (default stdout). |
-n, --name | Project/component name. |
--version | Project/component version. |
-d, --description | Project description. |
--include-dev | Include dev dependencies. |
mergeguide sbom.
Scan dependencies for vulnerabilities
An SBOM inventories your dependencies; to check them against known vulnerabilities, run the vulnerability scanner:Next steps
OSCAL export
Export NIST OSCAL compliance evidence.
Compliance overview
How evidence fits your audit.