Skip to content

pixi global add#

About#

Adds dependencies to an environment

Usage#

pixi global add [OPTIONS] --environment <ENVIRONMENT> <PACKAGE>...

Arguments#

  • <PACKAGE>
    Specifies the package that should be added to the environment
    May be provided more than once.
    required: true

Options#

  • --environment (-e) <ENVIRONMENT>
    Specifies the environment that the dependencies need to be added to
    required: true
  • --expose <EXPOSE>
    Add one or more mapping which describe which executables are exposed. The syntax is exposed_name=executable_name, so for example python3.10=python. Alternatively, you can input only an executable_name and executable_name=executable_name is assumed
    May be provided more than once.

Config Options#

Description#

Adds dependencies to an environment

Example:

  • pixi global add --environment python numpy
  • pixi global add --environment my_env pytest pytest-cov --expose pytest=pytest

Examples#

pixi global add python=3.9.* --environment my-env
pixi global add python=3.9.* --expose py39=python3.9 --environment my-env
pixi global add numpy matplotlib --environment my-env
pixi global add numpy matplotlib --expose np=python3.9 --environment my-env