Global Options
--help
Display help information for the command.Aliases:
-h--verbose
Increase logging verbosity. Can be specified multiple times for more detail.Aliases:
-vLevels:-v- Show warnings-vv- Show info messages-vvv- Show debug messages-vvvv- Show trace messages
--quiet
Decrease logging verbosity (quiet mode). Suppresses all output except errors.Aliases:
-q--quiet overrides --verbose if both are specified.--color
Control colored output in the terminal.Values:
auto- Automatically detect if colors are supportedalways- Always use colorsnever- Never use colors
PIXI_COLOR--no-progress
Hide all progress bars. Automatically enabled if stderr is not a terminal.Environment variable: Useful in CI/CD environments:
PIXI_NO_PROGRESSConfiguration Options
These options are available on commands that work with workspaces.--manifest-path
The path to
pixi.toml, pyproject.toml, or the workspace directory.Lock File Options
These options control how pixi interacts with the lock file.--frozen
Install the environment as defined in the lockfile without updating it.Environment variable: Use cases:
PIXI_FROZEN- CI/CD: Ensure reproducible builds
- Production: Deploy exact versions from lock file
- Offline: Install without network access (if cache is populated)
--locked
Check if lockfile is up-to-date before installing. Aborts if lockfile is outdated.Environment variable: Use cases:
PIXI_LOCKED- CI/CD: Fail if dependencies have changed
- Team development: Enforce lock file updates before running
- Validation: Verify lock file matches manifest
Differences: --frozen vs --locked
--frozen
--frozen
Behavior: Uses the existing lock file without updating it.When to use:
- Production deployments
- CI/CD pipelines
- When you want exact reproducibility
- Lock file is never updated
- Installs proceed even if manifest has changed
- Fast: skips dependency resolution
--locked
--locked
Behavior: Checks if lock file is up-to-date with manifest, fails if not.When to use:
- Catching uncommitted dependency changes
- Enforcing lock file discipline
- Pre-commit checks
- Lock file is never updated
- Fails if manifest has changed since lock file was generated
- Ensures lock file matches manifest
Neither (default)
Neither (default)
Behavior: Updates lock file if needed, then installs.When to use:
- Local development
- After adding/removing dependencies
- Normal workflow
- Lock file is updated if manifest changed
- Always installs latest compatible versions
Examples
Basic usage
CI/CD configuration
Development workflow
Custom manifest location
Debugging
Combining Options
Global options can be combined:Option Precedence
When the same setting is specified multiple ways, pixi uses this precedence (highest to lowest):- Command-line flags (e.g.,
--frozen) - Environment variables (e.g.,
PIXI_FROZEN=true) - Configuration file (e.g.,
config.toml) - Defaults
Related
- Environment Variables - Environment variable configuration
- Configuration File - File-based configuration
- [Commands(/commands/init) - Command-specific options