Skip to main content
Lists the packages installed in the current workspace environment. Explicit dependencies (packages directly specified in the manifest) are highlighted.

Usage

Alias: 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-pretty
string
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 name
  • version - Package version
  • build - Build string
  • build-number - Build number
  • size - Package size
  • kind - Package kind (conda/pypi)
  • source - Package source (channel or URL)
  • license - Package license
  • license-family - License family
  • is-editable - Whether package is editable
  • platform - Target platform
  • arch - Architecture
  • subdir - Subdirectory
  • url - Package URL
  • file-name - File name
  • md5 - MD5 hash
  • sha256 - SHA256 hash
  • timestamp - Package timestamp
  • noarch - Noarch type
  • requested-spec - Requested specification
  • depends - Dependencies
  • constrains - Constraints
  • track-features - Track features
Cannot be used with --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

Output:
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 channel
  • pypi - 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)

Packages are sorted alphabetically.

By Size

Packages are sorted by file size, smallest to largest.

By Kind

Packages are grouped by type (conda/pypi).

Use Cases

Audit Dependencies

Export Package List

Cross-Platform Development

License Compliance

You can use pixi ls as a shorthand for pixi list.

Differences from pixi tree