# SBOMs (https://depot.dev/changelog/2023-10-17-sboms)

> Published 2023-10-17

We've added a new flag, `--sbom`, to both the `build` and `bake` commands in our CLI. It can generate a Software Bill of Materials (SBOM) on every build. In addition, you can also specify a `--sbom-dir` parameter to have the generated SBOMs written to a local directory that you can then upload to your own SBOM analysis tools.

```shell
depot build --sbom=true --sbom-dir=sboms .
depot bake --sbom=true --sbom-dir=sboms -f docker-bake.hcl
```

You can read more about downloading SBOMs in Depot in our [SBOM announcement post](/blog/build-with-sboms).

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.