snippetbashTip
uv cache — Manage `uv`'s global cache directory. More information: <https://docs.astral.sh/uv/reference/cli/#uv
Viewed 0 times
directorycommanduv cachecacheclimanagemoreglobal
Problem
How to use the
uv cache command: Manage uv's global cache directory. More information: <https://docs.astral.sh/uv/reference/cli/#uv-cache>.Solution
uv cache — Manage uv's global cache directory. More information: <https://docs.astral.sh/uv/reference/cli/#uv-cache>.Show the cache directory path:
uv cache dirClean the entire cache (removes all cached packages and environments):
uv cache cleanClean the cache for specific packages:
uv cache clean {{package1 package2 ...}}Prune all unreachable objects from the cache:
uv cache prunePrune cache optimized for CI environments like GitHub Actions:
uv cache prune --ciUse a specific cache directory:
uv cache clean --cache-dir {{path/to/cache}}Clean cache with verbose output:
uv cache clean {{[-v|--verbose]}}Code Snippets
Show the cache directory path
uv cache dirClean the entire cache (removes all cached packages and environments)
uv cache cleanClean the cache for specific packages
uv cache clean {{package1 package2 ...}}Prune all unreachable objects from the cache
uv cache prunePrune cache optimized for CI environments like GitHub Actions
uv cache prune --ciContext
tldr-pages: common/uv cache
Revisions (0)
No revisions yet.