pixi icon indicating copy to clipboard operation
pixi copied to clipboard

feat: Pixi extensions

Open nichtmacho opened this issue 1 year ago • 2 comments

Overview

This issue proposes implementing an extension mechanism for Pixi, allowing the core functionality to be extended with some custom (external) commands.

The primary goal is to enable pixi to discover and execute external subcommands that follow a specific naming convention (pixi-) and are available in the system's $PATH.

Our main motivation is to allow the community to build and share new functionalities (e.g., pixi-deploy ) without modifying the core pixi codebase.

We plan to adopt the cargo model for handling external commands, to keep current and future developers familiar with the already present standard.

When a user runs pixi , pixi will first check if is a built-in command.

If it is not a recognized internal command, pixi will then search the system's $PATH for an executable named pixi-<subcommand>.

It also should assist you by telling you what similar commands exist: running pixi deployy should tell you that pixi deploy exists.

If such an executable is found, pixi will execute it, passing along any subsequent arguments.

If no internal command or external extension is found, it will return a "command not found" error as usual.

nichtmacho avatar Jun 16 '25 09:06 nichtmacho

Note that Cargo is also helpful for external commands:

Image

Hofer-Julian avatar Jun 16 '25 09:06 Hofer-Julian

assigned to @mrswastik-robot

nichtmacho avatar Jun 16 '25 12:06 nichtmacho