Update cheatsheets

This commit is contained in:
ivuorinen
2024-08-22 00:15:40 +00:00
parent bef5f39123
commit ec4def1435
7 changed files with 160 additions and 3 deletions

33
tldr/uv-python Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# uv python
> Manage Python versions and installations.
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-python>.
- List all available Python installations:
`uv python list`
- Install a Python version:
`uv python install {{version}}`
- Uninstall a Python version:
`uv python uninstall {{version}}`
- Search for a Python installation:
`uv python find {{version}}`
- Pin the current project to use a specific Python version:
`uv python pin {{version}}`
- Show the `uv` Python installation directory:
`uv python dir`