Some text some message..
Back List of commands for the UV Package Manager: 17 Jun, 2025

Here’s a comprehensive list of commands for the UV Package Manager:


🛠️ Core Commands

Command Description
uv init Initialize a new Python project with pyproject.toml and virtual env
uv pip install Install packages (replacement for pip install)
uv pip uninstall Uninstall packages
uv pip freeze Output installed packages in requirements.txt format
uv pip list List installed packages
uv pip show Show details of installed packages
uv pip check Check for broken or conflicting dependencies
uv venv Create or manage virtual environments
uv sync Sync dependencies from pyproject.toml and uv.lock
uv update Update packages to latest compatible versions
uv lock Generate a uv.lock lockfile from pyproject.toml
uv cache Manage the package cache (list, remove, clean, etc.)
uv pip search Search for packages on PyPI

🔍 Venv Management

Command Description
uv venv Create a virtual environment
uv venv --remove Remove the virtual environment

🧪 Other Utilities

Command Description
uv run Run a command inside the virtual environment
uv sync --dev Sync both dependencies and dev dependencies
uv pip install -r Install packages from requirements.txt

📁 Files Used

  • pyproject.toml: Main config file

  • uv.lock: Lockfile similar to poetry.lock or Pipfile.lock