hatch-env-lock - Man Page

hatch env lock – Generate lockfiles for environments

Synopsis

hatch env lock [Options] [ENV_NAME]

Description

When called without arguments, locks all environments that have locked = true in their configuration. When called with ENV_NAME, locks that specific environment.

Options

-U,  --upgrade

Upgrade all packages

-P,  --upgrade-package TEXT

Upgrade specific package(s)

--export PATH

Export lockfile to a custom path

--export-all PATH

Export lockfiles for all environments to a directory

--check

Check if lockfile is up-to-date

-h,  --help

Show a help message and exit

See Also

hatch-env-create(1), hatch-env-find(1), hatch-env-prune(1), hatch-env-remove(1), hatch-env-run(1), hatch-env-show(1)

hatch-env(1), hatch(1)

Referenced By

hatch-env(1), hatch-env-create(1), hatch-env-find(1), hatch-env-prune(1), hatch-env-remove(1), hatch-env-run(1), hatch-env-show(1).

June 2026