uv Command Examples

A fast Python package and project manager. Some subcommands such as uv tool and uv python have their own usage documentation. More information: https://docs.astral.sh/uv/reference/cli.

uv init

uv init {{project_name}}

uv add {{package}}

uv remove {{package}}

uv run {{path/to/script.py}}

uv run {{command}}

uv sync

uv lock