Skip to content

Add --outdated flag to uv tool list#18318

Merged
charliermarsh merged 1 commit intoastral-sh:mainfrom
mbarbero:add-outdated-flag-to-list
Mar 8, 2026
Merged

Add --outdated flag to uv tool list#18318
charliermarsh merged 1 commit intoastral-sh:mainfrom
mbarbero:add-outdated-flag-to-list

Conversation

@mbarbero
Copy link
Copy Markdown
Contributor

@mbarbero mbarbero commented Mar 5, 2026

Summary

Add a --outdated flag that queries PyPI for the latest version of each installed tool and filters the output to only show tools with available updates. Each outdated tool is displayed with its installed version and a [latest: X.Y.Z] annotation.

The implementation reuses the existing LatestClient infrastructure from pip list --outdated, fetching versions concurrently with progress reporting. Up-to-date tools are omitted from the output. A --no-outdated hidden flag is included for flag negation consistency.

Fixes #9309

Test Plan

A new integration test has been created in crates/uv/tests/it/tool_list.rs, and the feature has also been tested locally.

Add a `--outdated` flag that queries PyPI for the latest version of each
installed tool and filters the output to only show tools with available
updates. Each outdated tool is displayed with its installed version and
a `[latest: X.Y.Z]` annotation.

The implementation reuses the existing `LatestClient` infrastructure from
`pip list --outdated`, fetching versions concurrently with progress
reporting. Up-to-date tools are omitted from the output. A `--no-outdated`
hidden flag is included for flag negation consistency.

Fixes astral-sh#9309

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
@charliermarsh charliermarsh self-assigned this Mar 8, 2026
@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Mar 8, 2026
@charliermarsh charliermarsh merged commit 499cc82 into astral-sh:main Mar 8, 2026
53 checks passed
@charliermarsh
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the command line interface enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List available upgrades for tools with uv tool list --outdated

2 participants