mise bootstrap packages prune
- 用法:
mise bootstrap packages prune [FLAGS] - 效果: 具有破坏性 — 可能删除或不可逆地覆盖
- 源代码:
src/cli/system/prune.rs
Uninstall packages that no config declares
For brew (the default), removes every linked formula that is neither declared nor needed by a declared formula or cask, including formulae you installed with Homebrew itself. Run with --dry-run first, or record existing formulae with mise bootstrap packages import.
For brew-cask, removes only casks mise installed and can prove are unchanged. For a package plugin that supports uninstalling, removes only packages mise installed. A package is kept while the current config, or any trusted config mise has tracked, still declares it.
Flags
-m --manager <MANAGER>— Package manager to prune:brew,brew-cask, or a package pluginDefault:
brew-n --dry-run— Show what would be removed without removing anything-y --yes— Skip the confirmation prompt-h --help— Print help
示例
Preview which Homebrew formulae would be removed
mise bootstrap packages prune --dry-runRemove them without a prompt
mise bootstrap packages prune --yesPreview which casks would be removed
mise bootstrap packages prune --manager brew-cask --dry-runPreview removals for a package plugin named vscode
mise bootstrap packages prune --manager vscode --dry-run