docs/reference/cli/pixi/global/add.md
Adds dependencies to an environment
--8<-- "docs/reference/cli/pixi/global/add_extender:description"
pixi global add [OPTIONS] --environment <ENVIRONMENT> [PACKAGE]...
<PACKAGE></a>
: The dependency as names, conda MatchSpecsMay be provided more than once.
--path <PATH></a>
: The path to the local package--build-backend <BUILD_BACKEND></a>
: The build backend to build the source with, when the source does not provide its own package manifest (or to override the one it has). Accepts a name with an optional version constraint, e.g. pixi-build-rust or "pixi-build-rust>=0.3,<0.4"--package <KEY=VALUE></a>
: Additional fields of the inline package definition, as DOTTED_KEY=TOML_VALUE pairs that are recorded under the package key of the dependency, e.g. host-dependencies.hatchling="*" or build.config.extra-args=["--all-features"]May be provided more than once.
--environment (-e) <ENVIRONMENT></a>
: Specifies the environment that the dependencies need to be added torequired: true
--expose <EXPOSE></a>
: 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 assumedMay be provided more than once.
--auth-file <AUTH_FILE></a>
: Path to the file containing the authentication token--concurrent-downloads <CONCURRENT_DOWNLOADS></a>
: Max concurrent network requests, default is 50--concurrent-solves <CONCURRENT_SOLVES></a>
: Max concurrent solves, default is the number of CPUs--pinning-strategy <PINNING_STRATEGY></a>
: Set pinning strategyoptions: semver, minor, major, latest-up, exact-version, no-pin
--pypi-keyring-provider <PYPI_KEYRING_PROVIDER></a>
: Specifies whether to use the keyring to look up credentials for PyPIoptions: disabled, subprocess
--run-post-link-scripts</a>
: Run post-link scripts (insecure)--no-symbolic-links</a>
: Disallow symbolic links during package installationenv: PIXI_NO_SYMBOLIC_LINKS
--no-hard-links</a>
: Disallow hard links during package installationenv: PIXI_NO_HARD_LINKS
--no-ref-links</a>
: Disallow ref links (copy-on-write) during package installationenv: PIXI_NO_REF_LINKS
--tls-no-verify</a>
: Do not verify the TLS certificate of the server--offline=<OFFLINE></a>
: Run without network access, using only cached data. Commands fail if data is missing from the cache. Pass --offline=false to override an offline setting from the configurationenv: PIXI_OFFLINE
options: y, yes, t, true, on, 1, n, no, f, false, off, 0
--tls-root-certs <TLS_ROOT_CERTS></a>
: Which TLS root certificates to use: 'webpki' (bundled Mozilla roots) or 'system' (system store)env: PIXI_TLS_ROOT_CERTS
--use-environment-activation-cache</a>
: Use environment activation cache (experimental)--git <GIT></a>
: The git url, e.g. https://github.com/user/repo.git--branch <BRANCH></a>
: The git branch--tag <TAG></a>
: The git tag--rev <REV></a>
: The git revision--subdirectory <SUBDIRECTORY></a>
: The subdirectory within the git repositoryAdds dependencies to an environment
Example:
pixi global add --environment python numpypixi global add --environment my_env pytest pytest-cov --expose pytest=pytest--8<-- "docs/reference/cli/pixi/global/add_extender:example"