Usage
Description
Thepixi config command manages configuration settings at different levels:
- Local - Workspace-specific config (
.pixi/config.toml) - Global - User-level config (
~/.config/pixi/config.toml) - System - System-wide config
Subcommands
pixi config edit
Open the configuration file in an editor.
--local- Edit workspace configuration--global- Edit global configuration (default if not in a workspace)--system- Edit system configuration--editor <EDITOR>- Editor to use (defaults to$EDITORornano/notepad)
pixi config list
List configuration values.
[KEY]- Configuration key to show (shows all if not provided)
--json- Output in JSON format--local- Show workspace configuration--global- Show global configuration--system- Show system configuration
pixi config set
Set a configuration value.
<KEY>- Configuration key to set[VALUE]- Configuration value (key will be unset if not provided)
--local- Set in workspace configuration--global- Set in global configuration--system- Set in system configuration
pixi config unset
Remove a configuration value.
pixi config append
Append a value to a list configuration key.
pixi config prepend
Prepend a value to a list configuration key.
Configuration Keys
default-channels
Default conda channels to use.
tls-no-verify
Disable TLS certificate verification.
authentication-override-file
Override the default authentication file location.
mirrors
Configure channel mirrors.
pypi-config
PyPI-related configuration.
repodata-config
Repodata fetching configuration.
Examples
View all configuration
List all configuration values:View specific configuration
Show a single configuration key:Edit global config
Open global configuration in editor:Set default channels
Configure default channels:Configure PyPI index
Set custom PyPI index:Local workspace config
Set workspace-specific configuration:JSON output
Get configuration as JSON:Unset configuration
Remove a configuration value:Configuration Levels
Local (Workspace)
Local (Workspace)
Location:
.pixi/config.toml in workspace rootUse for: Workspace-specific settingsGlobal (User)
Global (User)
Location:
- Linux/macOS:
~/.config/pixi/config.toml - Windows:
%APPDATA%\pixi\config.toml
System
System
Location: System configuration directoryUse for: System-wide settings
Configuration Precedence
Configuration is loaded in this order (later overrides earlier):- System configuration
- Global configuration
- Local workspace configuration
- Environment variables
- CLI arguments