pixi.toml manifest file is the heart of a pixi workspace. It defines workspaces, packages, dependencies, tasks, environments, and more.
Overview
A pixi.toml manifest must have one of:[workspace]- For workspace definitions[project]- For workspace definitions (alias for[workspace])[package]- For buildable packages
Schema Validation
Add schema validation to your pixi.toml:Workspace Configuration
[workspace]
Defines a pixi workspace (also available as [project]).
The name of the workspace.
A short description of the workspace.
List of workspace authors in “Name <email>” format.
Conda channels to use for dependency resolution.With priorities:
Target platforms for the workspace.Valid platforms:
linux-64,linux-32,linux-aarch64,linux-armv6l,linux-armv7l,linux-ppc64,linux-ppc64le,linux-riscv32,linux-riscv64,linux-s390xosx-64,osx-arm64win-64,win-32,win-arm64emscripten-wasm32,wasi-wasm32noarch
License identifier (SPDX format recommended).
Path to the license file.
Path to the README file.
Homepage URL.
Repository URL.
Documentation URL.
Dependencies
[dependencies]
Conda dependencies for the default environment.
Simple string format
Simple string format
Table format (MatchSpec)
Table format (MatchSpec)
version- Version constraint (MatchSpec format)channel- Override channel for this packagebuild- Build string constraintbuild-number- Build number constraintfile-name- Exact file namesubdir- Platform subdirectorymd5/sha256- Hash verificationpath- Local package pathurl- Package URLgit- Git repository URLbranch/tag/rev- Git reference
[pypi-dependencies]
PyPI dependencies installed with pip.
Version strings
Version strings
Git dependencies
Git dependencies
Local dependencies
Local dependencies
With extras
With extras
[host-dependencies] and [build-dependencies]
Dependencies for building packages. See Build System documentation.
[dev]
Source packages whose dependencies should be installed without building the package itself.
Tasks
[tasks]
Define tasks that can be run with pixi run.
Command to execute. Can be a string or array of commands.
Working directory for the task.
Tasks that must run before this task.With arguments:
Environment variables to set.
Run in a clean environment (only pixi-set variables).
Task arguments that can be passed from the command line.
Environments
[environments]
Define multiple environments with different feature combinations.
Features to include in this environment.
Solve multiple environments together to share dependencies.
Exclude the default feature from this environment.
Features
[feature.<name>]
Define features that can be composed into environments.
dependencies- Conda dependenciespypi-dependencies- PyPI dependenciestasks- Feature-specific taskschannels- Override channelsplatforms- Supported platformssystem-requirements- Platform requirementsactivation- Activation scripts/environmenttarget- Platform-specific configuration
See Next
- pyproject.toml - Using pixi with Python projects
- pixi.lock - Lock file format
- [Build Configuration(/build/getting-started) - Building packages