---
title: pixi lock
---
<!--- This file is autogenerated. Do not edit manually! -->
# [pixi](../pixi.md) 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

## Update Options
- <a id="arg---no-install" href="#arg---no-install">`--no-install`</a>
:  Don't modify the environment, only modify the lock-file
<br>**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"
