Post

UV Commands

UV Commands

Scripts

For executing standalone Python scripts, e.g., example.py:

  • $ uv run

Projects

For creating and working on Python projects:

  • $ uv init: Create a new Python project.
  • $ uv add: Add a dependency to the project.
  • $ uv remove: Remove a dependency to the project.
  • $ uv sync: Sync the project’s dependencies with the environment.

## UV docs

View the UV docs here

This post is licensed under CC BY 4.0 by the author.