pixi self-update command updates the pixi binary to the latest version or downgrades to a specific version.
Usage
Options
Version Selection
Specify the desired version to upgrade or downgrade to.Format:
X.Y.Z (without leading โvโ)If not specified, updates to the latest version.Leading โvโ characters are automatically removed if provided (e.g.,
v0.25.0 becomes 0.25.0).Dry Run
Show what would be updated without actually modifying the binary.Displays release notes and version changes without performing the update.
Force Update
Force download and replace even if versions match.
- With
--version: Downloads specified version even if itโs already installed - Without
--version: Always downloads and replaces with the latest version
Skip Release Notes
Skip printing release notes during update.Useful for automated scripts or CI/CD pipelines.
Behavior
Automatic Version Detection
When no--version is specified:
- Fetches the latest release from GitHub
- Compares with current version
- Downloads and installs if newer version is available
Version Comparison
The command handles different scenarios:- Up to date: No action taken, displays current version
- Upgrade: Newer version available, downloads and installs
- Downgrade: Older version specified, prompts for confirmation (unless
--forceor--versionis used)
Downgrade Confirmation
When downgrading without explicit version:Release Notes
By default, release notes are displayed before updating:Examples
Update to Latest Version
Check for Updates (Dry Run)
Update to Specific Version
Downgrade to Older Version
Force Reinstall Current Version
Silent Update (No Release Notes)
Automated Update in CI
Platform Support
Supported platforms:- Linux:
x86_64-unknown-linux-musl,aarch64-unknown-linux-musl - macOS:
x86_64-apple-darwin,aarch64-apple-darwin - Windows:
x86_64-pc-windows-msvc,aarch64-pc-windows-msvc
Update Process
- Fetch version information: Queries GitHub for latest release or specified version
- Display release notes: Shows whatโs changed (unless
--no-release-note) - Download archive: Downloads platform-specific binary archive
- Extract binary: Unpacks the archive to temporary directory
- Replace binary: Replaces current pixi binary with new version
- Verify: New version is immediately available
Troubleshooting
Download Failed
Error:Failed to download the archive
Solution: Check internet connection and GitHub availability:
Version Not Found
Error:URL returned 404
Solution: Verify the version exists:
Permission Denied
Error:Permission denied when replacing binary
Solution: Ensure you have write permissions:
Already Up to Date
Message:pixi is already up-to-date
To reinstall anyway:
Release Notes Failed to Fetch
Warning:Failed to fetch release notes
The update continues despite this warning. Check the release page manually:
Self-Update Disabled Builds
Error message:Environment Variables
No environment variables affectpixi self-update.
Exit Codes
0: Success (updated or already up-to-date)1: Error (download failed, permission denied, etc.)
Security
All downloads are verified by:- Using HTTPS for secure transport
- Respecting system TLS configuration
- Using official GitHub release artifacts
Version Format
Versions follow Semantic Versioning:- Format:
MAJOR.MINOR.PATCH - Example:
0.25.0
See Also
- pixi โversion - Show current pixi version
- GitHub Releases - View all available versions
- Changelog - Detailed version history