Skip to main content

Usage

anaconda repo upload [FILES...] [--channel <CHANNEL>] [--package-type <TYPE>] [--name <NAME>] [--version <VERSION>] [--no-progress]
Replace FILES with the path(s) to the file(s) you want to upload (globs supported).
Replace <CHANNEL> with the target channel name.
Replace <TYPE> with the package type: conda, ipynb, gra, pypi, project, sdist, or env.
For General Artifacts (gra), <NAME> is required; <VERSION> is optional metadata.

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.

Options

Option
Default
Description
FILES...
Path to file(s) to upload (positional, required); globs supported
--channel, -c <CHANNEL>
default channel
Target channel name (can be repeated for multiple channels)
--package-type, -t <TYPE>
auto-detect
Package type conda, ipynb, gra, pypi, project, sdist, env
--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
anaconda repo upload mypackage-1.0-py39_0.conda
Upload to a specific channel
anaconda repo upload mypackage-1.0-py39_0.conda --channel my-team
Upload a notebook
anaconda repo upload report.ipynb --channel notebooks
Upload a General Artifact (name required)
anaconda repo upload dataset.zip --package-type gra --name my-dataset --channel artifacts