Usage
Description
Thepixi auth command manages authentication credentials for conda and PyPI package channels. It stores credentials securely and uses them automatically when accessing private channels or uploading packages.
The
pixi auth command uses the rattler authentication system. All subcommands and options are provided by rattler.Subcommands
pixi auth login
Authenticate with a package channel.
<HOST>- The host to authenticate with (e.g.,https://prefix.dev,conda.anaconda.org)
--token <TOKEN>- Provide the authentication token directly--username <USERNAME>- Username for basic authentication--password <PASSWORD>- Password for basic authentication--conda-token <TOKEN>- Conda token for Anaconda.org style authentication
pixi auth logout
Remove stored credentials for a host.
Examples
Login to Prefix.dev
Authenticate with Prefix.dev using an interactive prompt:Login with token
Provide the token directly:Login with username/password
Use basic authentication:Login to Anaconda.org
Authenticate with Anaconda.org:Logout
Remove stored credentials:Authentication Storage
Credentials are stored securely in:- Linux:
~/.rattler/credentials.json - macOS:
~/.rattler/credentials.json - Windows:
%USERPROFILE%\.rattler\credentials.json
- The
RATTLER_AUTH_FILEenvironment variable - The
authentication-override-fileconfiguration option
Supported Hosts
Prefix.dev
Prefix.dev
Anaconda.org
Anaconda.org
Quetz
Quetz
Private channels
Private channels
Usage with Commands
Once authenticated, credentials are automatically used:Environment Variables
Override the default credentials file location.
Security Best Practices
Related Commands
pixi upload- Upload packages using stored credentialspixi config- Configure authentication file location
Related Configuration
authentication-override-file- Override credentials file location