Skip to content

pixi lock#

Solve environment and update the lock file without installing the environments

Usage#

pixi lock [OPTIONS]

Options#

  • --json
    Output the changes in JSON format
  • --check
    Check if any changes have been made to the lock file. If yes, exit with a non-zero code
  • --dry-run
    Compute the lock file without writing to disk. Implies --no-install

Config Options#

  • --no-config
    Don't read system or user-level configuration files. Project-local <project>/.pixi/config.toml is still loaded
    env: PIXI_NO_CONFIG
    default: false
  • --config-file <PATH>
    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#

  • --no-install
    Don't modify the environment, only modify the lock file
    env: PIXI_NO_INSTALL

Global Options#

Examples#

pixi lock
pixi lock --manifest-path ~/myworkspace/pixi.toml
pixi lock --json
pixi lock --check