Usage
pixi ls
Arguments
List only packages matching a regular expression.
Options
The path to the
pixi.toml or pyproject.toml file.The environment to list packages for. Defaults to the default environment.
The platform to list packages for. Defaults to the current platform.
Output in JSON format.Alias:
--json-prettySorting strategy for packages.Options:
name, size, kindCannot be used with --json.Select which fields to display and in what order (comma-separated).Available fields:
name- Package nameversion- Package versionbuild- Build stringbuild-number- Build numbersize- Package sizekind- Package kind (conda/pypi)source- Package source (channel or URL)license- Package licenselicense-family- License familyis-editable- Whether package is editableplatform- Target platformarch- Architecturesubdir- Subdirectoryurl- Package URLfile-name- File namemd5- MD5 hashsha256- SHA256 hashtimestamp- Package timestampnoarch- Noarch typerequested-spec- Requested specificationdepends- Dependenciesconstrains- Constraintstrack-features- Track features
--json.Use the lockfile as-is without updating it.
Check if the lockfile is up-to-date. Errors if the lockfile is out-of-date.
Don’t install the environment before listing packages.
Only list packages that are explicitly defined in the workspace.
Examples
List all packages
Explicit dependencies are shown in bold in the terminal output.
Filter packages by name
List packages matching a regex
Sort by size
List only explicit dependencies
Output as JSON
List packages for a specific environment
List packages for a different platform
Custom field selection
List with all available fields
Package Display
Color Coding
- Yellow version numbers: Conda packages
- Blue version numbers: PyPI packages
- Bold package names: Explicit dependencies
Package Kinds
conda- Package from a conda channelpypi- Package from PyPI
Editable Packages
Editable packages are marked with(editable) in yellow next to their source:
JSON Output Format
Sorting Options
By Name (default)
By Size
By Kind
Use Cases
Audit Dependencies
Export Package List
Cross-Platform Development
License Compliance
Differences from pixi tree
| Feature | pixi list | pixi tree |
|---|---|---|
| Output | Flat package list | Dependency tree |
| Shows relationships | No | Yes |
| Sorting | Yes | No |
| JSON output | Yes | No |
| Field selection | Yes | No |