Skip to main content

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:
  1. Checks for available versions on GitHub
  2. Downloads the specified or latest version
  3. Replaces the current uv executable
  4. Verifies the installation
The update preserves your current installation location and does not require manual download or 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.
Environment variable: UV_GITHUB_TOKEN

--dry-run

Run without performing the update. Shows what would be updated without actually modifying the installation.
Useful for checking available updates before applying them.

Examples

Update to latest version

Expected output:

Update to specific version

Expected output:

Check for updates without installing

Expected output:

Update with GitHub token

Uses a GitHub token to avoid rate limiting.

Downgrade to older version

You can specify an older version to downgrade if needed.

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:
Then uv self update works directly:

Installed via pip

If you installed uv via pip, use pip to update:
Note: 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
To avoid rate limits:
Or:

Troubleshooting

Update fails with permission error

Update fails with network error

Rate limit errors

Verify update succeeded

Platform support

Linux

Works on all major Linux distributions.

macOS

Supports both Intel and Apple Silicon.

Windows

Supports Windows 10 and later.

Update notifications

uv may notify you when updates are available:
To update:

Notes

  • Updates are downloaded from GitHub releases
  • The update preserves your installation location
  • Use --dry-run to preview updates without applying them
  • GitHub tokens can prevent rate limiting
  • For pip installations, use pip install --upgrade uv instead
  • 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