mise/Q/How do I remove a mise tool?
Properties
- logseq-entity
- Logseq/Entity/Question
- see-also
- mise, mise/use/--global, mise/Config/Global, mise/unset
How do I remove a mise/Tool? card
My Answer
- tldr
- to find a tool
- filter mise/ls with rg to find
<TOOL_REFERENCE>
- filter mise/ls with rg to find
- to remove a tool
- call mise/unuse
<TOOL_REFERENCE>
- call mise/unuse
- to find a tool
Step 1 - find the tool reference with mise/ls
Step 2 - remove with mise/unuse
- tldr
My Notes
- The easiest way is a bit fake: edit the mise/Config/mise.toml manually to remove it. This is fake because it still leaves the underlying tool on your machine.
- If the mise/Tool you are uninstalling is available in a few different config files, you might want to use a flag to specify the location you want to install it from.
- mise/unuse/--global is unnecessary if there's no ambiguity about where the tool is defined
- use mise/ls/--global and mise/ls/--installed to find the globally installed mise/Tools, then use rg or grep to filter it down to the one you want
AI/Response
- Short answer: use
mise unuse -g <tool[@version]>. That is the dedicated command for removing a tool entry from the globalmiseconfig. - Why this is the idiomatic command:
mise unuseis purpose-built for removing tool versions from config, and-gtargets the global config file at~/.config/mise/config.toml. - What happens to installed files:
mise unusealso prunes the installed version if no other config still uses it. Add--no-pruneif you want to remove the global dependency but keep the installed tool around. - What not to use for this:
mise uninstallonly removes the installed version from disk and does not modify config, while mise/unset is for environment variables rather than tool dependencies. - Related alternative:
mise use --remove -g <tool>exists, butmise unuse -g <tool>is the clearer, purpose-specific form. - mise unuse
- mise uninstall
- mise use
- Short answer: use