mise uninstall
- 用法:
mise uninstall [FLAGS] [INSTALLED_TOOL@VERSION]… - 效果: 破坏性操作 — 可能删除或不可逆地覆盖
- 源代码:
src/cli/uninstall.rs
移除已安装的工具版本
Removes installed versions but does not edit mise.toml. Use mise unuse to remove a tool from mise.toml and uninstall it. A tool name or version prefix, such as node or node@22, must match exactly one installed version unless you pass --all.
Arguments
[INSTALLED_TOOL@VERSION]…— Tools to remove, such as [email protected]
Flags
-a --all— Remove every installed version of the named tools, or of every tool when none is named-n --dry-run— Show what would change without changing anything--dry-run-code— Like --dry-run, but exit with code 1 if there are tools to uninstallUse it in scripts that check whether tools need uninstalling.
-h --help— Print help
示例
Uninstall a specific version
mise uninstall [email protected]Uninstall node when exactly one version is installed
mise uninstall nodeUninstall every installed version of node
mise uninstall --all node