1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/uv.md
Lena b596b78b18
pages/*: standardize mentioning subcommands without the main command (#13626)
* pages/*: standardize mentioning subcommands without the main command

* CONTRIBUTING: clarify that pages should only mention the subcommand
2024-10-04 21:14:41 +02:00

37 lines
762 B
Markdown

# uv
> A fast Python package and project manager.
> Some subcommands such as `tool` and `python` have their own usage documentation.
> More information: <https://docs.astral.sh/uv/reference/cli>.
- Create a new Python project in the current directory:
`uv init`
- Create a new Python project in a directory with the given name:
`uv init {{project_name}}`
- Add a new package to the project:
`uv add {{package}}`
- Remove a package from the project:
`uv remove {{package}}`
- Run a script in the project's environment:
`uv run {{path/to/script.py}}`
- Run a command in the project's environment:
`uv run {{command}}`
- Update a project's environment from `pyproject.toml`:
`uv sync`
- Create a lock file for the project's dependencies:
`uv lock`