# `mix lei.sbom`
[🔗](https://github.com/gtri/lowendinsight/blob/main/lib/mix/tasks/lei/sbom.ex#L5)

Analyze a git repository and produce an SBOM in CycloneDX 1.4 or SPDX 2.3 JSON format.
Bus-factor risk scores from LowEndInsight are embedded as custom properties.

## Usage

    mix lei.sbom <repo_url> [--format cyclonedx|spdx] [--output <file>]

## Options

  * `--format` - SBOM format: `cyclonedx` (default) or `spdx`
  * `--output` - Write output to file instead of stdout

## Examples

    mix lei.sbom "https://github.com/kitplummer/xmpp4rails"
    mix lei.sbom "https://github.com/kitplummer/xmpp4rails" --format spdx
    mix lei.sbom "https://github.com/kitplummer/xmpp4rails" --format cyclonedx --output bom.json

---

*Consult [api-reference.md](api-reference.md) for complete listing*
