Skip to main content
Search for conda packages across channels.

Usage

pixi search [OPTIONS] <PACKAGE>

Description

The pixi search command searches for conda packages across configured channels. It displays the latest version of each package by default, with options to show more versions and detailed package information.

Arguments

package
string
required
MatchSpec of a package to search. Can include version constraints.
pixi search python
pixi search "numpy>=1.20"
pixi search "python=3.11.*"

Options

--channel
string
Additional channels to search (can be specified multiple times).
pixi search numpy --channel conda-forge
pixi search python --channel conda-forge --channel bioconda
--platform
platform
The platform to search for. By default, searches all platforms from the manifest (or all known platforms if no manifest is found).
pixi search numpy --platform linux-64
pixi search python --platform osx-arm64
--limit
integer
default:"5"
Limit the number of versions shown per package. Use -1 for no limit.
pixi search numpy --limit 10
pixi search python --limit -1  # Show all versions
--limit-packages
integer
default:"5"
Limit the number of packages shown. Use -1 for no limit.
pixi search "py*" --limit-packages 10
--json
boolean
Output in JSON format. Conflicts with --limit and --limit-packages.
pixi search numpy --json

Examples

Search for a package by name:
pixi search numpy

Search with version constraint

Search for packages matching a version requirement:
pixi search "python>=3.11,<3.12"

Search specific channels

Search in specific channels:
pixi search pytorch --channel pytorch --channel conda-forge

Show all versions

Display all available versions of a package:
pixi search numpy --limit -1

Search for specific platform

Search for packages available on a specific platform:
pixi search tensorflow --platform linux-64

JSON output

Get search results in JSON format for processing:
pixi search numpy --json | jq '.'

Output Format

Single Package (Detailed View)

When searching for a single package, detailed information is shown:
numpy-1.26.4-py311h64a7726_0
--------------------------------

Name              numpy
Version           1.26.4
Build             py311h64a7726_0
Size              8.2 MiB
License           BSD-3-Clause
Timestamp         2024-02-05 14:32:08 UTC
Subdir            linux-64
File Name         numpy-1.26.4-py311h64a7726_0.conda
URL               https://conda.anaconda.org/conda-forge/linux-64/numpy-1.26.4-py311h64a7726_0.conda
MD5               a502c5e1906ee5daeb089e4304b9b09b
SHA256            4c392a6c...

Dependencies:
 - libblas >=3.9.0,<4.0a0
 - libcblas >=3.9.0,<4.0a0
 - python >=3.11,<3.12.0a0

Multiple Packages (Summary View)

When searching returns multiple packages, a compact summary is shown:
numpy (245 versions)
  1.26.4 py311h64a7726_0 [linux-64] conda-forge
  1.26.3 py311h64a7726_0 [linux-64] conda-forge
  1.26.2 py311h64a7726_0 [linux-64] conda-forge
  ... and 242 more versions (use -l to show more)

numpy-base (89 versions)
  1.26.4 py311h0b4df6a_0 [linux-64] conda-forge
  1.26.3 py311h0b4df6a_0 [linux-64] conda-forge
  ... and 87 more versions (use -l to show more)
  • pixi add - Add packages to your workspace
  • pixi info - Show package and environment information