uv init dir_name
will create a new python projectuv init .
in an existing project directory
uv run script.py
will runscript.py
. No need to activate venv, uv will take care of ituv add lib_name
will pulllib_name
from pypi and add it to projectuv remove lib_name
will removelib_name
from the envuv lock
will generate a lockfileuv sync
will make the venv in sync with lockfile, installing and removing as requireduv pip install -r requirements.txt
in an existing project directory
Last active
August 24, 2025 16:55
-
-
Save kashifulhaque/0a45be806a2abd05c919316cf8b55986 to your computer and use it in GitHub Desktop.
Some commonly used `uv` commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment