pixi global update command updates packages in global environments to their latest compatible versions, maintaining executable exposures.
Usage
Arguments
Name(s) of environment(s) to update. If not specified, updates all environments.Multiple environments can be specified.
Behavior
Updating All Environments
When no environments are specified:- Prune old/unused environments and completions
- Update all environments to latest package versions
- Maintain all executable exposures
- Update shell completions
Updating Specific Environments
When environments are specified:- Update packages in specified environments only
- Preserve executable exposure configurations
- Update completions for affected environments
Exposure Preservation
The update command intelligently maintains executable exposures:
- If all executables were auto-exposed, new executables are also exposed
- If only specific executables were exposed, the same subset is maintained
Update Process
For each environment:- Check if environment is in sync
- Detect currently exposed executables
- Install latest package versions
- Sync executable exposures (preserving exposure strategy)
- Update shortcuts and completions
Examples
Update All Environments
Update Single Environment
Update Multiple Specific Environments
Update with Dry Run
State Changes Reported
After successful update, pixi reports:- Package version changes
- Newly exposed executables
- Updated completions
Comparison with Related Commands
update vs upgrade
pixi global update: Updates packages within version constraints from manifestpixi global upgrade: (Deprecated) Usepixi global updateinstead
update vs install
pixi global update: Updates existing environmentspixi global install: Creates or reinstalls environments
update vs sync
pixi global update: Installs latest versions, modifying lockpixi global sync: Installs exact versions from manifest/lock without updating
When to Use Update
Regular Maintenance
Update all environments periodically:After Manifest Changes
After manually editing the global manifest:Security Updates
Get latest security patches:New Features
Update specific tools to get new features:Exposure Strategy Detection
Auto-Expose All
If all executables were previously exposed:Manual Exposure
If only specific executables were exposed:Pruning Old Environments
When updating all environments, pixi automatically:- Removes environments not in the manifest
- Cleans up orphaned completion files (Unix)
- Removes unused directories
Update Failures
Example:Troubleshooting
Version Conflicts
Error:cannot satisfy version constraints
Solution: Check dependencies in manifest:
Package Not Found
Error:package 'xyz' not found
Solution: Package may have been removed or renamed:
Environment Out of Sync
Warning:environment not in sync
The update command automatically syncs before updating:
Exposure Changes
Unexpected executables exposed/removed: Check exposure strategy:Update Taking Too Long
Update specific environments instead of all:Advanced Usage
Update Before Running
Ensure tools are up-to-date before use:Selective Updates
Update only production environments:Update and Test
Batch Update Script
Performance Considerations
Config Options
Disable TLS certificate verification.
Path to authentication file.
Best Practices
Regular Updates
Schedule regular updates:Review Changes
Check what changed after update:Pin Critical Versions
For stability-critical environments, pin versions:Test After Update
Verify critical tools work after update:Environment Variables
No environment variables affectpixi global update.
Exit Codes
0: All environments updated successfully1: One or more environments failed to update
See Also
- pixi global install - Install global environments
- pixi global sync - Sync environments without updating
- pixi global list - View current environment versions
- pixi global upgrade - (Deprecated, use update instead)
- pixi global upgrade-all - (Deprecated, use update instead)