I just need to iterate on everything and we're not doing a lot of reviews anyway. Closes #5234 Closes #5191
3.5 KiB
Feature overview
uv supports the full Python development experience — from installing Python and hacking on simple scripts to working on large projects that support multiple Python versions and platforms.
uv's commands can be broken down into sections of discrete features which can be used independently.
Python version management
Installing and managing Python itself.
uv python installuv python listuv python finduv python pinuv python uninstall
See the guide on installing Python to get started.
Running scripts
Executing standalone Python scripts, e.g., example.py.
uv run
See the guide on running scripts to get started.
Project management
Creating and working on Python projects, i.e., with a pyproject.toml.
uv inituv adduv removeuv syncuv lockuv runuv tree
See the guide on projects to get started.
Tool installation
Running and installing tools published to Python package indexes, e.g., ruff or black.
uvx/uv tool runuv tool installuv tool uninstalluv tool listuv tool update-shell
See the guide on tools to get started.
Low-level commands
Manually managing environments and packages — intended to be used in legacy workflows or cases where the high-level commands do not provide enough control.
Creating virtual environments (replacing venv and virtualenv):
uv venv
See the documentation on using environments for details.
Managing packages in an environment (replacing pip):
uv pip installuv pip showuv pip freezeuv pip checkuv pip listuv pip uninstall
See the documentation on managing packages for details.
Locking packages in an environment (replacing pip-tools):
uv pip compileuv pip sync
See the documentation on locking environments for details.
Viewing package dependencies in an environment (replacing pipdeptree):
uv pip tree
!!! important
These commands do not exactly implement the interfaces and behavior of the tools they are based on. The further you stray from common workflows, the more likely you are to encounter differences. Consult the [pip-compatibility guide](./pip/compatibility.md) for details.
Internal commands
Managing and inspecting uv's state, such as the cache, storage directories, or performing a self-update:
uv cache cleanuv cache pruneuv cache diruv tool diruv python diruv self update
Next steps
Check out one of our guides to get started:
- Installing Python
- Running scripts
- Using tools
- Working on projects
- Using in Docker
- Using with pre-commit
- Using in GitHub Actions
- Using with commercial package indexes
Or, explore the concept documentation for comprehensive breakdown of each feature: