Pixi Basics
Nebi manages environments built with Pixi, a cross-platform package manager built on the conda ecosystem. This page covers the Pixi commands you’ll use most often when working with Nebi workspaces.
If you’re already comfortable with Pixi, you can skip ahead to the CLI Guides: CLI Local and CLI Team.
Install Pixi
Section titled “Install Pixi”curl -fsSL https://pixi.sh/install.sh | bashSee the Pixi installation docs for more options.
Activate a Shell
Section titled “Activate a Shell”Open an interactive shell with the workspace environment activated:
pixi shellAdd Dependencies
Section titled “Add Dependencies”Use pixi add to add packages to your workspace. This updates pixi.toml and pixi.lock automatically:
# Add a conda packagepixi add numpy
# Add a specific versionpixi add "python=3.12.*"
# Add a PyPI packagepixi add --pypi flask
# Add a PyPI package with extras and version pinpixi add --pypi "flask[async]==3.1.0"Remove Dependencies
Section titled “Remove Dependencies”pixi remove numpyThis removes the package from pixi.toml and updates pixi.lock.
Install the Environment
Section titled “Install the Environment”After pulling a workspace or editing pixi.toml manually, run:
pixi installThis resolves dependencies and installs all packages defined in the workspace.
List Installed Packages
Section titled “List Installed Packages”View all packages installed in the current workspace:
pixi listRun Commands and Tasks
Section titled “Run Commands and Tasks”Run a command or a task defined in pixi.toml inside the workspace environment:
# Run a defined taskpixi run test
# Run an arbitrary commandpixi run python my_script.pyTypical Nebi + Pixi Workflow
Section titled “Typical Nebi + Pixi Workflow”Here’s how Pixi commands fit into a typical Nebi workflow:
# 1. Create and track a new workspacemkdir my-project && cd my-projectnebi init
# 2. Activate the environmentpixi shell
# 3. Add dependenciespixi add numpy pandas matplotlib
# 4. Push the workspace to your teamnebi push my-projectLearn More
Section titled “Learn More”For the full Pixi documentation, visit pixi.sh.