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

## Usage

```bash theme={null}
conda repo upload [OPTIONS] <FILES...>
```

## Description

Uploads package files or artifacts to a channel. When you omit `--package-type`, the CLI detects the type from the file. It recognizes `.tar.bz2` conda packages, notebooks (`.ipynb`), environment files (`.yml`), Python wheels and source distributions, and R packages. It can't detect `.conda` files or general artifacts, so specify `--package-type conda` or `--package-type gra` for those. For general artifacts, `--name` is also required.

## Arguments

Argument

Description

`FILES...`

*(required)* Path to file(s) to upload. Globs supported.

## Options

Option

Default

Description

`--channel, -c <CHANNEL>`

default channel

Target channel name (can be repeated for multiple channels)

`--interactive, -i`

Run an interactive prompt if any packages are missing

`--package-type, -t <TYPE>`

auto-detect

Package type `conda`, `ipynb`, `gra`, `pypi`, `project`, `sdist`, `env`. Required for `.conda` files and general artifacts.

`--name, -n <NAME>`

Name (required for General Artifacts)

`--version <VERSION>`

Version (optional metadata)

`--no-progress`

Don't show upload progress

`-h, --help`

Show help for this command

## Examples

**Upload a conda package to the default channel**

```bash theme={null}
conda repo upload mypackage-1.0-py39_0.conda --package-type conda
```

**Upload to a specific channel**

```bash theme={null}
conda repo upload mypackage-1.0-py39_0.conda --channel my-team --package-type conda
```

**Upload a notebook**

```bash theme={null}
conda repo upload report.ipynb --channel notebooks
```

**Upload a General Artifact (name required)**

```bash theme={null}
conda repo upload dataset.zip --package-type gra --name my-dataset --channel artifacts
```

> [!NOTE]
>
> The CLI can't detect the type of `.conda` files or general artifacts. Specify `--package-type conda` or `--package-type gra`. For general artifacts, you must also supply `--name`.
