uv self update
Update uv to the latest version.Usage
Description
Update the uv executable to a newer version. By default, updates to the latest available version. This command:- Checks for available versions on GitHub
- Downloads the specified or latest version
- Replaces the current uv executable
- Verifies the installation
Arguments
[TARGET_VERSION]
Update to the specified version. If not provided, uv will update to the latest version.
Options
--token <TOKEN>
A GitHub token for authentication.
A token is not required but can be used to reduce the chance of encountering rate limits when checking for new versions.
UV_GITHUB_TOKEN
--dry-run
Run without performing the update.
Shows what would be updated without actually modifying the installation.
Examples
Update to latest version
Update to specific version
Check for updates without installing
Update with GitHub token
Downgrade to older version
Use cases
Regular updates
Keep uv up to date with the latest features and bug fixes:CI/CD version control
Pin specific versions in CI pipelines:Testing new releases
Test new uv versions before rolling out:Automated update checks
Create a script to check for updates:Installation methods and updates
Installed via standalone installer
If you installed uv using the standalone installer:uv self update works directly:
Installed via pip
If you installed uv via pip, use pip to update:uv self update may not work for pip installations.
Installed via package manager
If you installed via a package manager (Homebrew, etc.), use that package manager:Checking your current version
GitHub rate limiting
Without authentication, GitHub API requests are rate-limited:- 60 requests per hour for unauthenticated requests
- 5,000 requests per hour with authentication
Troubleshooting
Update fails with permission error
Update fails with network error
Rate limit errors
Verify update succeeded
Platform support
Linux
macOS
Windows
Update notifications
uv may notify you when updates are available:Related commands
uv self version- Display uv’s versionuv --version- Show uv version (short form)
Notes
- Updates are downloaded from GitHub releases
- The update preserves your installation location
- Use
--dry-runto preview updates without applying them - GitHub tokens can prevent rate limiting
- For pip installations, use
pip install --upgrade uvinstead - For package manager installations (Homebrew, etc.), use the package manager’s update command
- Updates are platform-specific and download the correct binary for your system
- The update process is atomic and safe to interrupt