mise cache clear
- Usage:
mise cache clear [--task <TASK>] [TOOL]… - Aliases:
c,clean - Effect: modifies state
- Source code:
src/cli/cache/clear.rs
Delete cached data
With no arguments, deletes the whole cache directory, the cached environment, and every task's cached artifacts. With TOOL arguments, deletes only the cached data of those tools, such as their version lists. With --task, deletes only that task's cached artifacts. Installed tools are not removed; mise downloads or rebuilds what it needs again.
Arguments
[TOOL]…— Only clear the cache of these tools, such asnode
Flags
--task <TASK>— [experimental] Clear task artifact cache entries for a task name or pattern-h --help— Print help
Examples
Clear the whole cache
mise cache clearRefresh node's version list
mise cache clear node[experimental] Forget the build task's cached artifacts
mise cache clear --task build