Skip to main content

Usage

anaconda token set [OPTIONS] <TOKEN>
Replace <TOKEN> with the token you need to use for authentication.

Description

Installs a repository token with explicit control over which .condarc file the configuration is written to. When an organization is specified with --org, the token is also stored in the keyring via the standard install flow. Side effects: Writes token to conda configuration; optionally stores in keyring and configures default channels.

Arguments

Argument
Description
TOKEN
(required) The token to install

Options

Option
Default
Description
-o, --org <NAME>
Organization name (slug). When provided, also stores the token in the keyring.
--set-default-channels / --no-set-default-channels
--set-default-channels
Automatically configure conda default channels
-f, --file <PATH>
Write to the specified .condarc file
-e, --env
Write to the active conda environment’s .condarc. If no environment is active, writes to ~/.condarc.
-s, --system
--system
Write to the system .condarc
--help
Show help for this command

Examples

Install a token for an organization
anaconda token set <TOKEN> --org my-organization
Write to an environment-specific config
anaconda token set <TOKEN> --org my-organization --env
Write to a specific file
anaconda token set <TOKEN> --org my-organization --file ~/.condarc