Skip to content

firmis bom - Generate Agent Bill of Materials

Terminal window
firmis bom [path] [options]

You cannot pass a compliance audit for an AI system you have not inventoried. firmis bom generates a CycloneDX 1.7 Agent Bill of Materials - a complete, structured record of every component, dependency, tool, and model reference in your agent stack.

The BOM follows the CycloneDX 1.7 specification, the same standard used for software supply chain security across the industry. It includes each AI agent tool, skill, or plugin listed as a named component; npm and pip packages with exact version numbers; detected model files and model references; and metadata including scan timestamp, Firmis version, and project name.

By default the BOM is written to stdout as JSON. Use --output to save to a file. When --output is provided, a human-readable summary is printed to the terminal alongside the saved file.

firmis bom is read-only. It does not modify any files. For immediate security findings on the same components, use firmis scan. For a full CI pipeline that generates the BOM and scans in one pass, use firmis ci.

Terminal
npx firmis bom
Terminal
npx firmis bom --output agent-bom.json
Terminal
npx firmis bom --platform mcp --output mcp-bom.json

Generate a timestamped BOM as part of a release workflow

Section titled “Generate a timestamped BOM as part of a release workflow”
Terminal
npx firmis bom --output "artifacts/agent-bom-$(date +%Y%m%d).json"
Terminal
npx firmis bom --verbose --output agent-bom.json
FlagTypeDefaultDescription
--platform <name>stringall platformsGenerate BOM for a specific platform only. Useful when scoping to one part of a larger monorepo.
--output <file>stringstdoutSave the BOM JSON to a file. When provided, a summary is printed to the terminal.
--verbosebooleanfalseEnable verbose logging during BOM generation.
CodeMeaning
0BOM generated successfully.
1BOM generation failed with an error.
  • Agent BOM concept - what Agent BOMs are, why they matter, and how they differ from a standard SBOM
  • CycloneDX BOM spec - full output format reference
  • discover - human-readable component inventory without the CycloneDX structure
  • CI pipeline - generate the BOM automatically as part of your CI security pipeline