Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt

Use this file to discover all available pages before exploring further.

After scanning your project, you can convert the resulting JSON output to other formats for use with different tools, workflows, and stakeholders — without needing to re-scan your codebase.

The Convert Command

Basic Syntax

scanoss-py convert --input <input-file> --format <format> --output <output-file>
Run the following command to view all available options:
scanoss-py convert --help
Available output formats:
  • cyclonedx — CycloneDX Software Bill of Materials (SBOM)
  • spdxlite — SPDX Lite SBOM (a licence-focused subset of the SPDX standard)
  • csv — Comma-separated values (spreadsheet-compatible)
Note: The --format flag value is case-sensitive and must be entered in lowercase as shown above.

Convert to CycloneDX

Generate an SBOM in CycloneDX format:
scanoss-py convert --input scan-results.json --format cyclonedx --output sbom.cdx.json

Convert to SPDX Lite

Generate an SBOM in SPDX Lite format:
scanoss-py convert --input scan-results.json --format spdxlite --output sbom.spdx.json

Convert to CSV

Generate a comma-separated values file suitable for use in spreadsheet applications:
scanoss-py convert --input scan-results.json --format csv --output results.csv