Usage
pixi ls
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 list packages for. Defaults to the default environment.
string
The platform to list packages for. Defaults to the current platform.
boolean
Output in JSON format.Alias:
--json-prettystring
default:"name"
Sorting strategy for packages.Options:
name, size, kindCannot be used with --json.string
default:"name,version,build,size,kind,source"
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.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 listing packages.
boolean
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: