LinuxCommandLibrary

uv

A fast Python package and project manager.

TLDR

Create a new Python project in the current directory

$ uv init
copy


Create a new Python project in a directory with the given name
$ uv init [project_name]
copy


Add a new package to the project
$ uv add [package]
copy


Remove a package from the project
$ uv remove [package]
copy


Run a script in the project's environment
$ uv run [path/to/script.py]
copy


Run a command in the project's environment
$ uv run [command]
copy


Update a project's environment from pyproject.toml
$ uv sync
copy


Create a lock file for the project's dependencies
$ uv lock
copy

Copied to clipboard