Skip to main content
Lists global environments with their dependencies and exposed commands. Can also display all packages within a specific global environment.

Usage

Alias: pixi g list, pixi g ls

Arguments

string
List only packages matching a regular expression.Without regex syntax, it acts like a contains filter.

Options

string
List all packages in a specific environment, with output similar to pixi list.
string
default:"name"
Sorting strategy for the package table of an environment.Options: name, sizeRequires --environment.
boolean
Output in JSON format.

Examples

List all global environments

Output:

List environments matching a pattern

Shows only environments containing “py” in their name or packages.

List packages in a specific environment

Output (similar to pixi list):

Sort packages by size

Output as JSON

Display Format

All Environments

When listing all environments:
  • Yellow: Exposed binaries (executables available in your PATH)
  • Green: Explicit package dependencies
  • Blue: Package versions
  • Cyan: Environment names

Per Environment

When using --environment:
  • Green: Explicitly installed packages (bold)
  • Regular text: Transitive dependencies

JSON Output Format

All Environments

Specific Environment

Use Cases

Check What’s Installed

Find Available Commands

Audit a Specific Environment

Export Environment Information

Check if Environment is in Sync

Pixi will warn you if environments are out of sync:

Filtering

By Name

Shows environments with “python” in the name or package list.

By Regex

Shows environments starting with “py”.

Environment Status

The list command will warn you if:
  • Environments are out of sync with the manifest
  • An environment needs to be synced
To fix:

Sorting Options

By Name (default)

By Size

Sorting options only work with the --environment flag.

Understanding the Output

Exposed vs Installed

  • Installed packages: All packages in the environment
  • Exposed executables: Commands available in your PATH
Example:
Output:

Explicit vs Transitive

When using --environment:
  • Explicit (bold green): Packages you installed
  • Transitive: Dependencies of those packages
Use pixi g ls as a shorthand for pixi global list.

Complete Workflow