Skip to main content
Show a tree of workspace dependencies, displaying how packages depend on each other.

Usage

Alias: pixi t

Arguments

string
List only packages matching a regular expression.

Options

path
The path to the pixi.toml or pyproject.toml file.
string
The environment to show the tree for. Defaults to the default environment.
string
The platform to show the tree for. Defaults to the current platform.
boolean
Invert the tree and show what depends on the given package (requires a regex argument).
boolean
Use the lockfile as-is without updating it.
boolean
Check if the lockfile is up-to-date. Errors if the lockfile is out-of-date.
boolean
Don’t install the environment before showing the tree.

Examples

Show full dependency tree

Output:

Show dependencies of a specific package

Show reverse dependencies (what depends on a package)

Output:

Show tree for a specific environment

Show tree for a different platform

Display Format

Color Coding

Dependency names are color-coded:
  • Green: Packages that are explicitly specified in the manifest
  • Yellow: Conda package versions
  • Blue: PyPI package versions

Tree Symbols

  • ├── - Package has more siblings
  • └── - Last package in the list

Understanding Dependencies

Direct Dependencies

Packages you explicitly add to your project are shown in green.

Transitive Dependencies

Packages that are installed because they’re required by your direct dependencies.

Example

Running pixi tree shows:

Inverted Tree

The --invert flag shows reverse dependencies - which packages depend on a given package:
Output:
This shows:
  • numpy depends on python
  • pandas depends on numpy (which depends on python)
  • requests depends on python
  • pip depends on python
The --invert flag requires a package name or regex to specify which package’s dependents you want to see.

Filtering

By Package Name

Shows only the numpy package and its dependencies.

By Regex Pattern

Shows all packages starting with “py” and their dependencies.

Use Cases

Debugging Dependency Conflicts

Understanding Package Size

Auditing Dependencies

Cross-Platform Dependencies

Package Sources

The tree distinguishes between:
  • Conda packages: Version numbers in yellow
  • PyPI packages: Version numbers in blue

Differences from pixi list

You can use pixi t as a shorthand for pixi tree.

Understanding the Output

Explicit vs Transitive

Circular Dependencies

If circular dependencies exist, the tree will show them but avoid infinite recursion.

Performance

For large dependency trees:
  • Use filtering to focus on specific packages
  • Consider using pixi list for a simpler overview
  • Use --no-install if you don’t need to update the environment