Individual paid plans with private packages are a legacy offering from Anaconda.org that are no longer available. However, anyone who had private packages in the past still has the ability to have those hosted privately.
Generating tokens
Tokens provide varying degrees of access to content within a specified depending on the scope assignment. If you need to separate permission levels by package, you can create an organization and groups within that organization.By default, tokens expire after one year.
- CLI
- Anaconda.org
-
Open Anaconda Prompt (Terminal on macOS/Linux) and run the following command:
This command generates a random alphanumeric string. That string is your token! You can distribute your token to other Anaconda.org users to provide them with a specific, limited set of permissions to interact with your Anaconda.org assets.Replace <YOUR_TOKEN_NAME> with a name of your choosing.
Replace <SCOPE> with a scope(s) from the Scopes dropdown below. -
Add the token to your channel path in your .condarc file by running the following command:
Or, add a channel with a token and a :Replace <TOKEN> with your token string.
Replace <CHANNEL> with the channel name.Replace <TOKEN> with your token string.
Replace <CHANNEL> with the channel name.
Replace <YOUR_TOKEN_NAME> with the label name used in the previous step.
Scopes
Scopes
Assign scopes to tokens to set permission levels for token holders. Scopes are provided as a space-separated, quoted list.Available scopes:
| Scope | Permission |
|---|---|
all | Allow all operations |
repos | Allow access to all package repositories |
pypi | Allow all operations on Standard Python repositories |
pypi:upload | Provides upload permissions to Standard Python repositories |
pypi:download | Provides download permissions for private packages in Standard Python repositories |
conda | Allow all operations on conda repositories |
conda:download | Provides download permissions for private packages in conda repositories |
api | Allow all API operations |
api:write | Provides write permissions to actions performed via API |
api:read | Provides read permissions to actions performed via API |
api:modify-group | Provides manage permissions to groups via the API |
If your token expires, revoke the token and create a new one.
Revoking tokens
You can revoke tokens directly on Anaconda.org or from the command line interface (CLI).- CLI
- Anaconda.org
-
Open Anaconda Prompt (Terminal on macOS/Linux) and run the following command:
Replace <YOUR_TOKEN_NAME> with the name of the token you want to revoke.