Back to Ohmyzsh

uv plugin

plugins/uv/README.md

latest4.2 KB
Original Source

uv plugin

This plugin automatically installs uv's completions for you, and keeps them up to date. It also adds convenient aliases for common usage.

To use it, add uv to the plugins array in your zshrc file:

zsh
plugins=(... uv)

Aliases

AliasCommandDescription
uvauv addAdd packages to the project
uvexpuv export --format requirements-txt --no-hashes --output-file requirements.txt --quietExport the lock file to requirements.txt
uviuv initInitialize a new project in current workspace and environment.
uvinwuv init --no-workspaceInitialize a new project in a new workspace and environment
uvluv lockLock the dependencies
uvlruv lock --refreshRebuild the lock file without upgrading dependencies
uvluuv lock --upgradeLock the dependencies to the newest compatible versions
uvpuv pipManage pip packages
uvpiuv python installInstall a specific version of python
uvpluv python listLists all python version installed
uvppuv python pinPin the current project to use a specific Python version
uvpuuv python uninstallRemove a specific version of python
uvpyuv pythonManage Python installs
uvruv runRun commands within the project's environment
uvrmuv removeRemove packages from the project
uvsuv syncSync the environment with the lock file
uvsruv sync --refresh"Force" sync the environment with the lock file (ignore cache)
uvsuuv sync --upgradeSync the environment, allowing upgrades and ignoring the lock file
uvtruv treeDisplays the full dependency tree for the current project environment
uvupuv self updateUpdate the UV tool to the latest version
uvvuv venvManage virtual environments