uv
A fast Python package and project manager. Some subcommands such as `tool` and `python` have their own usage documentation.
More info →Subcommands (18)
Add package dependencies to the `pyproject.toml` file. Packages are specified according to <https://peps.python.org/pep-0508/>.
Build Python packages into source distributions and wheels.
Manage `uv`'s global cache directory.
Export the project's lockfile to an alternate format.
Display detailed documentation for `uv` commands.
Create a new Python project.
Update the project's lockfile.
Provides pip-like commands for installing, uninstalling, and managing packages.
Upload distributions to an index.
Manage Python versions and installations.
Remove dependencies from the project's `pyproject.toml` file.
Run a command or script in the project environment.
Manage the `uv` executable itself.
Update the project's environment to match the lockfile.
Install and run commands provided by Python packages.
Display project dependencies in a tree format.
Create an isolated Python environment for installing packages.
Read or update a project's version.
Examples (8)
Create a new Python project in the current directory
Create a new Python project at the specified path
uv init path/to/directoryAdd a new dependency to the project
uv add packageRemove a dependency from the project
uv remove packageRun a script or a command in the project's environment
uv run path/to/script.py|commandUpdate a project's environment from `pyproject.toml`
Create a lock file for the project's dependencies
Build the project into source and binary distributions