1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 12:15:25 +02:00
tldr/pages/common/uv-export.md
Meinard Francisco 595818316a
uv-{build,cache,export,publish,self}: add pages (#16906)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-06-21 04:14:05 +05:30

857 B

uv export

Export the project's lockfile to an alternate format. More information: https://docs.astral.sh/uv/reference/cli/#uv-export.

  • Export dependencies to a requirements.txt file:

uv export --format requirements-txt {{[-o|--output-file]}} {{requirements.txt}}

  • Export dependencies to pylock.toml format:

uv export --format pylock.toml

  • Export only production dependencies (exclude dev dependencies):

uv export --no-dev

  • Export including a specific optional dependency group:

uv export --extra {{group_name}}

  • Export including all optional dependencies:

uv export --all-extras

  • Export including a specific dependency group:

uv export --group {{group_name}}

  • Export without hashes:

uv export --no-hashes

  • Export dependencies for a specific package in the workspace:

uv export --package {{package_name}}