Skip to content

Feature Request: Add a way to get tool venv specific information when using uv tool #7311

Open
@taranlu-houzz

Description

@taranlu-houzz

It would be very helpful to have the following additional functionality as flags for uv tool list:

  • --show-full-dep-tree: show all of the deps installed into the tool venvs.
  • --show-tool-install-command: show the original command used to install the tool (sometimes the package name does not match what is on pypi, e.g. p4python installs the P4 package).

To help differentiate tools installed with a more complicated setup, it is really helpful to have an additional suffix that gets appended to all installed script entry points (pipx does this via the --suffix flag).

Use case:

  • I install coverage with additional pytest deps like this: uv tool install coverage --with pytest --with pytest-spec --with pytest-sugar.
  • This lets me use uvx coverage run -m pytest to run tests with my desired plugins on any project.
  • Depending on how long it has been since I used a tool, it may be hard to recall exactly what is installed in the tool environment (or how it was initially installed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command line interfaceenhancementNew feature or improvement to existing functionalityuv toolRelated to the uv tool interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions