docs/reference/cli/pixi/exec.md
Run a command and install it in a temporary environment
--8<-- "docs/reference/cli/pixi/exec_extender:description"
pixi exec [OPTIONS] [COMMAND]...
<COMMAND></a>
: The executable to run, followed by any argumentsMay be provided more than once.
--spec (-s) <SPEC></a>
: Matchspecs of package to install. If this is not provided, the package is guessed from the commandMay be provided more than once.
--with (-w) <WITH></a>
: Matchspecs of package to install, while also guessing a package from the commandMay be provided more than once.
--channel (-c) <CHANNEL></a>
: The channels to consider as a name or a url. Multiple channels can be specified by using this field multiple timesMay be provided more than once.
--platform (-p) <PLATFORM></a>
: The platform to create the environment for. Defaults to the current machine's subdir. Accepts a workspace platform name or a bare conda subdir (e.g. linux-64); pixi exec runs outside any workspace so the value resolves to a conda subdir either way--force-reinstall</a>
: If specified a new environment is always created even if one already exists--list=<LIST></a>
: Before executing the command, list packages in the environment Specify --list=some_regex to filter the shown packages--no-modify-ps1</a>
: Disable modification of the PS1 prompt to indicate the temporary environment--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--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)Run a command and install it in a temporary environment.
Remove the temporary environments with pixi clean cache --exec.
--8<-- "docs/reference/cli/pixi/exec_extender:example"