# Generate SBOM with the Xygeni CLI

To generate an SBOM file with the Xygeni CLI , specify the **`--sbom`** option with the name of the file to create. You may use `stdin` or `stdout` to force output to the standard output / standard error, respectively.

```
SBOM options:
      --sbom=<sbom>          SBOM file to generate. Use 'stdout' or '-' for standard output, 'stderr' for standard error.
      --sbom-format=<sbomFormat>
                             SBOM format: cyclonedx, spdx.
```

The `--sbom` option is required with **`--sbom-format`**. Two formats are currently supported:

* `cyclonedx`, CycloneDX format (JSON schema).See <https://cyclonedx.org/> for full details.
* `spdx`, the Software Package Data Exchange (SPDX) in JSON serialization format, standard ISO/IEC 5962:2021. See <https://spdx.dev/> for full details.
