mise bootstrap packages prune
- Usage:
mise bootstrap packages prune [FLAGS] - Effect: destructive — may delete or irreversibly overwrite
- Source code:
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
Examples
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