Skip to content

pixi shell#

Start a shell in a pixi environment, run exit to leave the shell

Note

Never put the pixi shell command inside one of your shell's startup files (.profile, .bashrc and the likes): the command starts a new shell without special arguments so the new shell will again execute your startup files, which in turn will again run pixi shell and so on, recursively until failure.

Use shell-hook instead if you want to activate a pixi environment when your shell starts.

Usage#

pixi shell [OPTIONS]

Options#

Config Options#

Update Options#

  • --no-install
    Don't modify the environment, only modify the lock-file
  • --frozen
    Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
    env: PIXI_FROZEN
  • --locked
    Check if lockfile is up-to-date before installing the environment, aborts when lockfile isn't up-to-date with the manifest file
    env: PIXI_LOCKED
  • --as-is
    Shorthand for the combination of --no-install and --frozen

Global Options#

Examples#

pixi shell
pixi shell --manifest-path ~/myworkspace/pixi.toml
pixi shell --frozen
pixi shell --locked
pixi shell --environment cuda
exit