Skip to main content
The pixi global edit command opens the global manifest file in your default text editor for manual editing.

Usage

Options

string
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:
  1. --editor flag (if provided)
  2. EDITOR environment variable
  3. Platform default:
    • Unix/macOS: nano
    • Windows: notepad

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

Opens the global manifest in your default editor (from $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

Sets your preferred editor and opens the manifest.

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

After manually editing the global manifest:
  1. Save and close the file
  2. Run pixi global sync to apply changes
  3. Verify with pixi global list

Validate Before Saving

Ensure TOML syntax is correct:

Backup Before Major Changes

Common Editing Tasks

Add New Environment

Then sync:

Remove Environment

Delete the entire environment section:
Then sync:

Update Dependencies

Change version constraints:

Modify Exposures

Add, remove, or change exposed executables:

Editor-Specific Tips

Vim/Neovim

Visual Studio Code

The --wait flag ensures the terminal waits for you to close the file.

Nano

Nano is the default on Unix systems.

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
Windows command wrapping:

See Also