uv environment variables - sdake/dotfiles GitHub Wiki

The uv tool environment variables

Category Variable Description
Core Configuration
UV_CONFIG_FILE Specifies the path to UV's configuration file
UV_NO_CONFIG When set, disables loading of the configuration file
UV_CACHE_DIR Sets the directory for UV's cache storage
UV_NO_CACHE When set, disables caching functionality
UV_NO_PROGRESS Disables progress bar display during operations
UV_NO_WRAP Controls command wrapping behavior
UV_PREVIEW Enables preview features
UV_NO_INSTALLER_METADATA Disables collection of installer metadata
UV_SHOW_RESOLUTION Shows detailed dependency resolution information
Python Installation
UV_PYTHON Specifies the Python interpreter to use
UV_PYTHON_INSTALL_DIR Sets the directory for Python installation
UV_PYTHON_INSTALL_MIRROR Defines a mirror for Python installations
UV_PYTHON_DOWNLOADS Controls Python download behavior
UV_PYTHON_BIN_DIR Specifies the directory for Python binaries
UV_SYSTEM_PYTHON Controls usage of system Python installation
UV_PYPY_INSTALL_MIRROR Defines a mirror for PyPy installations
UV_PROJECT_ENVIRONMENT Sets the project's virtual environment path
Package Management
UV_INDEX Specifies package indexes to use
UV_INDEX_URL Sets the primary package index URL
UV_EXTRA_INDEX_URL Adds additional package index URLs
UV_DEFAULT_INDEX Sets the default package index
UV_INDEX_STRATEGY Controls how package indexes are used
UV_FIND_LINKS Specifies additional locations to find packages
UV_EXCLUDE_NEWER Excludes newer package versions
UV_NO_BUILD_ISOLATION Disables build isolation
Tool Management
UV_TOOL_DIR Sets the directory for tool installations
UV_TOOL_BIN_DIR Specifies the directory for tool binaries
UV_CUSTOM_COMPILE_COMMAND Sets a custom compilation command
Authentication and Security
UV_GITHUB_TOKEN GitHub authentication token
UV_KEYRING_PROVIDER Specifies the keyring provider for credentials
UV_INSECURE_HOST List of hosts to skip SSL verification for
UV_NATIVE_TLS Controls use of native TLS implementation
Performance Configuration
UV_CONCURRENT_DOWNLOADS Sets the number of concurrent downloads
UV_CONCURRENT_BUILDS Sets the number of concurrent builds
UV_CONCURRENT_INSTALLS Sets the number of concurrent installations
UV_HTTP_TIMEOUT Sets the HTTP request timeout
UV_REQUEST_TIMEOUT Alternative way to set request timeout