Skip to main content

jnc list

Lists all packages installed in the environment. Packages that are explicitly defined in the workspace manifest are highlighted. Supports filtering by regex, sorting, JSON output, and field selection.

Usage

jnc list [OPTIONS] [REGEX]
Alias: ls

Arguments

ArgumentDescription
[REGEX]Optional regular expression to filter packages by name.

Options

OptionShortDescription
--environment <ENV>-eThe environment to list packages for. Defaults to the default environment.
--platform <PLATFORM>The platform to list packages for. Defaults to the current platform.
--jsonOutput the package list in JSON format.
--sort-by <STRATEGY>Sort packages by name (default), size, or kind.
--fields <FIELDS>Comma-separated list of fields to display: name, version, build, build-number, size, kind, source, license, license-family, md5, sha256, arch, platform, subdir, timestamp, noarch, file-name, url, requested-spec, constrains, depends, track-features, is-editable. Defaults to name,version,build,size,kind,source.
--explicit-xOnly list packages explicitly defined in the workspace manifest.
--frozenUse the lock file as-is. Do not update it if it is out of date.
--lockedRequire the lock file to be up-to-date. Abort if it is not.
--no-installDo not install the environment, only check the lock file.

Global Options

OptionShortDescription
--manifest-path <PATH>-mPath to pixi.toml or the workspace directory.

Examples

List all packages in the default environment:
jnc list
Filter packages by name:
jnc list "numpy.*"
List packages in a specific environment:
jnc list --environment test
Output as JSON:
jnc list --json
Sort by size:
jnc list --sort-by size
Show only explicitly requested packages:
jnc list --explicit
Choose which fields to display:
jnc list --fields name,version,license,size