docs/reference/cli/pixi/run.md
Runs task in the pixi environment
--8<-- "docs/reference/cli/pixi/run_extender:description"
pixi run [OPTIONS] [TASK]...
<TASK></a>
: The pixi task or a task shell command you want to run in the workspace's environment, which can be an executable in the environment's PATHMay be provided more than once.
--executable (-x)</a>
: Execute the command as an executable without resolving Pixi tasks--environment (-e) <ENVIRONMENT></a>
: The environment to run the task in--clean-env</a>
: Use a clean environment to run the task--skip-deps</a>
: Don't run the dependencies of the task ('depends-on' field in the task definition)--templated</a>
: Enable template rendering for the command arguments--dry-run (-n)</a>
: Run the task in dry-run mode (only print the command that would run)--help</a>
:--no-config</a>
: Don't read system or user-level configuration files. Project-local <project>/.pixi/config.toml is still loadedenv: PIXI_NO_CONFIG
default: false
--config-file <PATH></a>
: Load configuration from this file instead of searching system and user-level paths. Project-local <project>/.pixi/config.toml is still merged on topenv: PIXI_CONFIG_FILE
--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)--force-activate</a>
: Do not use the environment activation cache. (default: true except in experimental mode)--no-completions</a>
: Do not source the autocompletion scripts from the environment--no-install</a>
: Don't modify the environment, only modify the lock fileenv: PIXI_NO_INSTALL
--frozen</a>
: Install the environment as defined in the lock file, doesn't update lock file if it isn't up-to-date with the manifest fileenv: PIXI_FROZEN
--locked</a>
: Check if lock file is up-to-date before installing the environment, aborts when lock file isn't up-to-date with the manifest fileenv: PIXI_LOCKED
--as-is</a>
: Shorthand for the combination of --no-install and --frozen--manifest-path (-m) <MANIFEST_PATH></a>
: The path to pixi.toml, pyproject.toml, or the workspace directory--workspace (-w) <WORKSPACE></a>
: Name of the workspaceRuns task in the pixi environment.
This command is used to run tasks in the pixi environment. It will activate the environment and run the task in the environment. It is using the deno_task_shell to run the task.
pixi run will also update the lock file and install the environment if it is required.
--8<-- "docs/reference/cli/pixi/run_extender:example"