Skip to main content
The pixi global tree command displays the dependency tree for a specific global environment, showing how packages depend on each other.

Usage

Options

Environment Selection

string
required
The environment to list packages for.Short flag: -e

Filtering

string
List only packages matching a regular expression.Positional argument (optional).

Inverted Tree

boolean
default:"false"
Invert tree and show what depends on a given package.Short flag: -iRequires a regex argument to specify the package.

Behavior

Standard Tree View

Shows packages and their dependencies in a tree structure:
Example output:

Direct Dependencies Highlighted

Packages directly specified in the manifest are highlighted in green.
Direct dependencies (specified in your manifest) are highlighted in green to distinguish them from transitive dependencies.

Inverted Tree View

Shows what depends on a specific package:
Example output:
This shows that pandas depends on numpy, and matplotlib depends on pandas.

Examples

Show Full Dependency Tree

Displays all packages and their dependencies.

Filter by Package Name

Shows only numpy and its dependencies.

Filter with Regex

Shows packages starting with “py” (python, pytz, etc.).

Show Reverse Dependencies

Shows all packages that depend on Python.

Check What Depends on a Library

Shows which packages in your tools environment depend on certifi.

Find Dependency Chain

Shows how openssl is used in the dependency tree.

Understanding the Output

Tree Structure Symbols

  • ├── - Branch connector (more dependencies follow)
  • └── - Last branch connector (final dependency)
  • - Vertical line (continuation)

Package Information

Each line shows:
  • Package name
  • Version number
  • Color coding:
    • Green: Direct dependencies (in your manifest)
    • Default: Transitive dependencies (pulled in by other packages)

Virtual Packages

Packages starting with __ are filtered out (e.g., __glibc, __cuda):

Common Use Cases

Debug Dependency Issues

Find why a package is installed:
Shows what pulled in the unexpected package.

Check Python Dependencies

See all packages that require Python.

Find Heavy Dependencies

Identify packages with many dependencies.

Verify Environment Contents

Ensure the environment contains expected packages.

Analyze Package Relationships

See scipy’s full dependency tree.

Filtering Examples

Matches: python, pytz, pyyaml, etc.

Library Dependencies

Matches: libblas, libcblas, libgfortran, etc.

Specific Version

Matches: numpy 1.26.x

Case-Insensitive Match

Matches numpy regardless of case in the pattern.

Inverted Tree Examples

What Depends on OpenSSL

Shows the reverse dependency chain.

What Uses NumPy

Shows all packages that depend on NumPy.

Find Python Dependents

Lists everything that requires Python.

Troubleshooting

Environment Not Found

Error: Environment not found Solution: Check environment name:

No Packages Found

Error: No packages found matching pattern Solution: Adjust regex pattern:

Invert Requires Regex

Error: --invert requires regex argument Solution: Provide package name:

Empty Tree

If tree is empty, environment may not be installed:

Comparison with Project Tree

Global Tree vs Project Tree

  • pixi global tree: Shows dependencies for global environments
  • pixi tree: Shows dependencies for workspace project

Output Formats

The tree output is designed for terminal viewing:
  • Color highlighting for direct dependencies
  • Unicode tree characters for structure
  • Package versions clearly displayed

Redirect to File

Note: Color codes may appear in the file. Use --no-color if available or process the output.

Performance Notes

For large environments, filtering with regex improves performance and readability.

Advanced Usage

Combine with Other Tools

Audit Dependencies

Compare Environments

See Also