pixi global edit command opens the global manifest file in your default text editor for manual editing.
Usage
Options
The editor to use. Defaults to the
EDITOR environment variable.Default editors by platform:- Unix/macOS:
nano - Windows:
notepad
Behavior
Editor Selection
The command determines which editor to use in this order:--editorflag (if provided)EDITORenvironment variable- Platform default:
- Unix/macOS:
nano - Windows:
notepad
- Unix/macOS:
File Location
The global manifest file is located at:- Unix/macOS:
~/.pixi/manifests/pixi-global.toml - Windows:
%USERPROFILE%\.pixi\manifests\pixi-global.toml
Directory Creation
If the manifest directory doesn’t exist, it’s automatically created before opening the editor.Examples
Edit with Default Editor
$EDITOR or platform default).
Edit with Specific Editor
Edit with Visual Editor
For GUI editors like VS Code, use
--wait flag to make the terminal wait until you close the file.Edit with Environment Variable
Global Manifest Structure
The global manifest file has the following structure:Manual Editing Use Cases
Bulk Environment Changes
Manually edit multiple environments at once:Complex Exposure Mappings
Set up multiple executable mappings:Channel Configuration
Configure custom channels for environments:Version Pinning
Pin specific versions across environments:Editing Best Practices
Validate Before Saving
Ensure TOML syntax is correct:Backup Before Major Changes
Common Editing Tasks
Add New Environment
Remove Environment
Delete the entire environment section:Update Dependencies
Change version constraints:Modify Exposures
Add, remove, or change exposed executables:Editor-Specific Tips
Vim/Neovim
Visual Studio Code
--wait flag ensures the terminal waits for you to close the file.
Nano
Emacs
Troubleshooting
Editor Not Found
Error:editor not found or command not found
Solution: Use full path or available editor:
File Not Created
If the file doesn’t exist, the directory is created automatically. The file is created when you save in the editor.Syntax Errors After Editing
Error:failed to parse manifest
Solution: Validate TOML syntax:
Changes Not Applied
After editing, run sync to apply changes:Platform Differences
Unix/macOS
Default editor:nano
Manifest location: ~/.pixi/manifests/pixi-global.toml
Windows
Default editor:notepad
Manifest location: %USERPROFILE%\.pixi\manifests\pixi-global.toml
See Also
- pixi global sync - Synchronize global environments
- pixi global list - List global environments
- pixi global install - Install global environments