features
Features
Python versions (Python management):
uv python install: Install Python versionsuv python list: View available versionsuv python find: Locate an installed Python versionuv python pin: Pin a version for the projectuv python uninstall: Remove a managed Python version
Scripts (Standalone Python scripts):
uv run: Execute a script with dependenciesuv add --script: Add dependencies to a scriptuv remove --script: Remove script dependencies
Projects (Projects using pyproject.toml):
uv init: Create a projectuv add: Add project dependencyuv remove: Remove dependencyuv sync: Install dependencies in the project environmentuv lock: Generate or updateuv.lockuv run: Run a command in the project environmentuv tree: Show dependency treeuv build: Build source and wheel distributionsuv publish: Publish the package to a registry
Tools (Python CLI tools like ruff, black):
uvx,uv tool run: Run tool in a temporary envuv tool install: Install a tool persistentlyuv tool uninstall: Remove installed tooluv tool list: Show installed toolsuv tool update-shell: Update PATH for tool binaries
Pip interface (Manual environment and package management):
Note: pip compatibility is approximate; differences may appear in complex workflows.
- Virtual envs:
uv venv: Create a virtual environment
- Package management:
uv pip install: Install packagesuv pip show,uv pip list,uv pip freeze: Inspect packagesuv pip check: Verify environment compatibilityuv pip uninstall: Uninstall packagesuv pip tree: Show dependency tree
- Locking:
uv pip compile: Create lockfilesuv pip sync: Sync environment to lockfile
Utility commands (Inspect or update state):
uv cache clean: Clear cacheuv cache prune: Remove unused/outdated cache entriesuv cache dir: Show cache directory pathuv tool dir: Show tool install directory pathuv python dir: Show managed Python directory pathuv self update: Update uv to the latest version