Back to Pixi

pixi lock

docs/reference/cli/pixi/lock.md

0.72.01.7 KB
Original Source
<!--- This file is autogenerated. Do not edit manually! -->

pixi lock

Solve environment and update the lock file without installing the environments

--8<-- "docs/reference/cli/pixi/lock_extender:description"

Usage

pixi lock [OPTIONS]

Options

  • <a id="arg---json" href="#arg---json">--json</a> : Output the changes in JSON format
  • <a id="arg---check" href="#arg---check">--check</a> : Check if any changes have been made to the lock file. If yes, exit with a non-zero code
  • <a id="arg---dry-run" href="#arg---dry-run">--dry-run</a> : Compute the lock file without writing to disk. Implies --no-install

Config Options

  • <a id="arg---no-config" href="#arg---no-config">--no-config</a> : Don't read system or user-level configuration files. Project-local <project>/.pixi/config.toml is still loaded

env: PIXI_NO_CONFIG

default: false

  • <a id="arg---config-file" href="#arg---config-file">--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 top

env: PIXI_CONFIG_FILE

Update Options

  • <a id="arg---no-install" href="#arg---no-install">--no-install</a> : Don't modify the environment, only modify the lock file

env: PIXI_NO_INSTALL

Global Options

  • <a id="arg---manifest-path" href="#arg---manifest-path">--manifest-path (-m) <MANIFEST_PATH></a> : The path to pixi.toml, pyproject.toml, or the workspace directory
  • <a id="arg---workspace" href="#arg---workspace">--workspace (-w) <WORKSPACE></a> : Name of the workspace

--8<-- "docs/reference/cli/pixi/lock_extender:example"