Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-21 00:20:29 +00:00
parent 53cdffdca8
commit b4c3b9f9ca
6 changed files with 191 additions and 2 deletions

41
tldr/uv-export Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`