Skip to main content
The pixi workspace command provides subcommands to modify and query workspace configuration directly from the command line without manually editing the manifest file.

Usage

Subcommands

The workspace command includes several subcommands for managing different aspects of your workspace:
  • channel - Manage workspace channels
  • description - Get or set workspace description
  • environment - Manage workspace environments
  • export - Export workspace to different formats
  • feature - Manage workspace features
  • name - Get or set workspace name
  • platform - Manage workspace platforms
  • requires-pixi - Manage pixi version requirements
  • system-requirements - Manage system requirements
  • version - Manage workspace version

Channel Management

Add Channel

Add one or more channels to the workspace:
Options:
string
required
Channel name or URL to add. Multiple channels can be specified.
integer
Specify the channel priority (higher values = higher priority).
boolean
default:"false"
Add the channel(s) to the beginning of the channels list.
string
Add the channel to a specific feature.Short flag: -f
boolean
default:"false"
Don’t install the environment, only update the lock file.
Examples:
Aliases: pixi workspace channel a

List Channels

List all channels in the workspace:
Options:
boolean
default:"false"
Display channel URLs instead of names.
Examples:
Aliases: pixi workspace channel ls

Remove Channel

Remove one or more channels from the workspace:
Options:
string
required
Channel name or URL to remove. Multiple channels can be specified.
integer
Only remove channels with this priority.
string
Remove the channel from a specific feature.Short flag: -f
boolean
default:"false"
Don’t install the environment, only update the lock file.
Examples:
Aliases: pixi workspace channel rm

Description Management

Get Description

Get the workspace description:
Outputs the current workspace description if set.

Set Description

Set the workspace description:
Examples:

Environment Management

Add Environment

Add a new environment to the workspace:
Options:
string
required
Name of the environment to add.
string
Features to add to the environment. Can be specified multiple times.Short flag: -f
string
The solve-group to add the environment to.
boolean
default:"false"
Don’t include the default feature in the environment.
boolean
default:"false"
Update the manifest even if the environment already exists.
Examples:
Aliases: pixi workspace environment a

List Environments

List all environments in the workspace:
Displays all environments with their features and solve groups. Aliases: pixi workspace environment ls

Remove Environment

Remove an environment from the workspace:
Examples:
Aliases: pixi workspace environment rm

Feature Management

List Features

List all features in the workspace:
Displays features with their dependencies, PyPI dependencies, and tasks. Aliases: pixi workspace feature ls

Remove Feature

Remove a feature from the workspace:
Examples:
Aliases: pixi workspace feature rm

Name Management

Get Name

Get the workspace name:

Set Name

Set the workspace name:
Workspace names should only use lowercase letters (a-z), digits (0-9), hyphens (-), and underscores (_).
Examples:

Platform Management

Add Platform

Add platform(s) to the workspace:
Options:
string
required
Platform name(s) to add (e.g., linux-64, osx-arm64, win-64).
boolean
default:"false"
Don’t update the environment, only add to lock file.
string
Add the platform to a specific feature.Short flag: -f
Examples:
Aliases: pixi workspace platform a

List Platforms

List all platforms in the workspace:
Aliases: pixi workspace platform ls

Remove Platform

Remove platform(s) from the workspace:
Options:
string
required
Platform name(s) to remove.
boolean
default:"false"
Don’t update the environment, only remove from lock file.
string
Remove the platform from a specific feature.Short flag: -f
Examples:
Aliases: pixi workspace platform rm

Export

Export workspace to different formats:
See the export subcommands for available formats (e.g., conda environment files).

Requires Pixi

Manage pixi version requirements for the workspace:
Available subcommands:
  • get - Get the required pixi version
  • set - Set the required pixi version
  • unset - Remove the pixi version requirement
  • verify - Verify current pixi version meets requirements

System Requirements

Manage system requirements for the workspace:
Available subcommands:
  • add - Add system requirements
  • list - List system requirements

Version Management

Manage workspace version:
Available subcommands:
  • get - Get the workspace version
  • set - Set the workspace version
  • bump - Bump the workspace version

Global Options

string
Path to pixi.toml, pyproject.toml, or workspace directory.Short flag: -m

Complete Examples

Set Up New Workspace

Manage Multi-Environment Project

Inspect Workspace Configuration

See Also