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:
-eFiltering
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: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:Examples
Show Full Dependency Tree
Filter by Package Name
Filter with Regex
Show Reverse Dependencies
Check What Depends on a Library
Find Dependency Chain
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:Check Python Dependencies
Find Heavy Dependencies
Verify Environment Contents
Analyze Package Relationships
Filtering Examples
Python-Related Packages
Library Dependencies
Specific Version
Case-Insensitive Match
Inverted Tree Examples
What Depends on OpenSSL
What Uses NumPy
Find Python Dependents
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 environmentspixi 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
--no-color if available or process the output.
Performance Notes
Advanced Usage
Combine with Other Tools
Audit Dependencies
Compare Environments
See Also
- pixi tree - Show dependency tree for workspace project
- pixi global list - List packages in global environments
- pixi global install - Install global environment
- pixi list - List packages in workspace