> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# conda repo sbom

## Usage

```bash theme={null}
conda repo sbom --channel <CHANNEL> --ckey <CKEY>
```

Comments

Replace \<CHANNEL> with the channel name.\\

Replace \<CKEY> with the artifact's CKEY, including its platform prefix (for example, `osx-arm64/mypackage-1.0.0-py312_0.conda`).

## Description

Downloads the SBOM (Software Bill of Materials) for an artifact in a channel and saves it as an `.spdx.json` file in the current directory. Identify the artifact with `--channel` and `--ckey`. To find an artifact's CKEY, run `conda repo channel --list-file <CHANNEL>::<PACKAGE> --full-details`.

## Options

Option

Default

Description

`--channel <CHANNEL>`

Channel containing the package (required)

`--package <PACKAGE>`

Package name. Not currently supported; use `--ckey`.

`--version <VERSION>`

Package version. Not currently supported; use `--ckey`.

`--os <PLATFORM>`

Platform/architecture (for example, `linux-64`). Not currently supported; use `--ckey`.

`--family <FAMILY>`

Artifact family: `conda`, `python`, `cran`, `anaconda_project`, `anaconda_env`, `notebook`, `gra`. Not currently supported; use `--ckey`.

`--ckey <CKEY>`

CKEY identifying a specific artifact file, including its platform prefix (required)

`-h, --help`

Show help for this command

## Examples

**Download the SBOM for an artifact**

```bash theme={null}
conda repo sbom --channel my-channel --ckey osx-arm64/mypackage-1.0.0-py312_0.conda
```

> [!NOTE]
>
> Identifying an artifact with `--package`, `--version`, `--os`, and `--family` instead of `--ckey` currently returns "No SBOM … available" even when an SBOM exists. Use `--ckey`.
