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

# anaconda repo upload

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

## Usage

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

## Description

Uploads package files or artifacts to a channel. The CLI detects package type (env, ipynb, conda, pypi, sdist, or gra) from the file when not specified. For general artifacts (gra), `--name` is required.

## Arguments

<GTable cols="30% 70%">
  <GHead>
    <GRow>
      <GTH>Argument</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`FILES...`</GCell>
      <GCell>*(required)* Path to file(s) to upload. Globs supported.</GCell>
    </GRow>
  </GBody>
</GTable>

## Options

<GTable cols="25% 25% 50%">
  <GHead>
    <GRow>
      <GTH>Option</GTH>
      <GTH>Default</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`--channel, -c <CHANNEL>`</GCell>
      <GCell>default channel</GCell>
      <GCell>Target channel name (can be repeated for multiple channels)</GCell>
    </GRow>

    <GRow>
      <GCell>`--package-type, -t <TYPE>`</GCell>
      <GCell>auto-detect</GCell>
      <GCell>Package type `conda`, `ipynb`, `gra`, `pypi`, `project`, `sdist`, `env`</GCell>
    </GRow>

    <GRow>
      <GCell>`--name, -n <NAME>`</GCell>

      <GCell />

      <GCell>Name (required for General Artifacts)</GCell>
    </GRow>

    <GRow>
      <GCell>`--version <VERSION>`</GCell>

      <GCell />

      <GCell>Version (optional metadata)</GCell>
    </GRow>

    <GRow>
      <GCell>`--no-progress`</GCell>

      <GCell />

      <GCell>Don't show upload progress</GCell>
    </GRow>

    <GRow>
      <GCell>`-h, --help`</GCell>

      <GCell />

      <GCell>Show help for this command</GCell>
    </GRow>
  </GBody>
</GTable>

## Examples

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

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

**Upload to a specific channel**

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

**Upload a notebook**

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

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

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

<Notes>
  For `--package-type gra` (General Artifacts), you must supply `--name`. The CLI auto-detects package type from the file when `--package-type` is omitted.
</Notes>
