> For the complete documentation index, see [llms.txt](https://docs.xygeni.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/generate-sbom-with-the-xygeni-cli.md).

# 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/generate-sbom-with-the-xygeni-cli.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
