rorix sbom

Generate a Software Bill of Materials (SBOM) from .NET or npm project dependencies.

Usage

rorix sbom [path] [options]

If no path is provided, Rorix uses the current directory.

Options

| Option | Default | Description | | --- | --- | --- | | --format | cyclonedx | SBOM format: cyclonedx or spdx | | --output | — | Write SBOM to a file instead of stdout |

Examples

Generate CycloneDX SBOM to stdout

rorix sbom

Write SBOM to a file

rorix sbom --output sbom.json

Generate SPDX format

rorix sbom --format spdx --output sbom.spdx.json

Generate SBOM for a specific project

rorix sbom ./src/MyApp/MyApp.csproj --output myapp-sbom.json

For npm, use the lockfile so package versions are exact:

rorix sbom ./package-lock.json --output node-sbom.json

Output

The generated SBOM includes:

  • Exact dependencies found in the submitted manifest
  • Package versions and download locations
  • License information for each component

See the SBOM Formats page for details on CycloneDX vs SPDX.