HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

uv tree — Display project dependencies in a tree format. More information: <https://docs.astral.sh/uv/referenc

Submitted by: @import:tldr-pages··
0
Viewed 0 times
uv treecommandtreeformatdependenciesclidisplayproject

Problem

How to use the uv tree command: Display project dependencies in a tree format. More information: <https://docs.astral.sh/uv/reference/cli/#uv-tree>.

Solution

uv tree — Display project dependencies in a tree format. More information: <https://docs.astral.sh/uv/reference/cli/#uv-tree>.

Show dependency tree for current environment:
uv tree


Show dependency tree for all environments:
uv tree --universal


Show dependency tree up to a certain depth:
uv tree {{[-d|--depth]}} {{n}}


Show the latest available version for all outdated packages:
uv tree --outdated


Exclude dependencies from the dev group:
uv tree --no-dev


Show the inverted tree, so children are dependents instead of dependencies:
uv tree --invert

Code Snippets

Show dependency tree for current environment

uv tree

Show dependency tree for all environments

uv tree --universal

Show dependency tree up to a certain depth

uv tree {{[-d|--depth]}} {{n}}

Show the latest available version for all outdated packages

uv tree --outdated

Exclude dependencies from the dev group

uv tree --no-dev

Context

tldr-pages: common/uv tree

Revisions (0)

No revisions yet.