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 channelsdescription- Get or set workspace descriptionenvironment- Manage workspace environmentsexport- Export workspace to different formatsfeature- Manage workspace featuresname- Get or set workspace nameplatform- Manage workspace platformsrequires-pixi- Manage pixi version requirementssystem-requirements- Manage system requirementsversion- Manage workspace version
Channel Management
Add Channel
Add one or more channels to the workspace:Channel name or URL to add. Multiple channels can be specified.
Specify the channel priority (higher values = higher priority).
Add the channel(s) to the beginning of the channels list.
Add the channel to a specific feature.Short flag:
-fDon’t install the environment, only update the lock file.
pixi workspace channel a
List Channels
List all channels in the workspace:Display channel URLs instead of names.
pixi workspace channel ls
Remove Channel
Remove one or more channels from the workspace:Channel name or URL to remove. Multiple channels can be specified.
Only remove channels with this priority.
Remove the channel from a specific feature.Short flag:
-fDon’t install the environment, only update the lock file.
pixi workspace channel rm
Description Management
Get Description
Get the workspace description:Set Description
Set the workspace description:Environment Management
Add Environment
Add a new environment to the workspace:Name of the environment to add.
Features to add to the environment. Can be specified multiple times.Short flag:
-fThe solve-group to add the environment to.
Don’t include the default feature in the environment.
Update the manifest even if the environment already exists.
pixi workspace environment a
List Environments
List all environments in the workspace:pixi workspace environment ls
Remove Environment
Remove an environment from the workspace:pixi workspace environment rm
Feature Management
List Features
List all features in the workspace:pixi workspace feature ls
Remove Feature
Remove a feature from the workspace: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 (_).
Platform Management
Add Platform
Add platform(s) to the workspace:Platform name(s) to add (e.g., linux-64, osx-arm64, win-64).
Don’t update the environment, only add to lock file.
Add the platform to a specific feature.Short flag:
-fpixi workspace platform a
List Platforms
List all platforms in the workspace:pixi workspace platform ls
Remove Platform
Remove platform(s) from the workspace:Platform name(s) to remove.
Don’t update the environment, only remove from lock file.
Remove the platform from a specific feature.Short flag:
-fpixi workspace platform rm
Export
Export workspace to different formats:Requires Pixi
Manage pixi version requirements for the workspace:get- Get the required pixi versionset- Set the required pixi versionunset- Remove the pixi version requirementverify- Verify current pixi version meets requirements
System Requirements
Manage system requirements for the workspace:add- Add system requirementslist- List system requirements
Version Management
Manage workspace version:get- Get the workspace versionset- Set the workspace versionbump- Bump the workspace version
Global Options
Path to
pixi.toml, pyproject.toml, or workspace directory.Short flag: -mComplete Examples
Set Up New Workspace
Manage Multi-Environment Project
Inspect Workspace Configuration
See Also
- pixi init - Initialize a new pixi workspace
- pixi add - Add dependencies to workspace
- pixi remove - Remove dependencies from workspace