docs/cli/reshim.md
mise reshimmise reshim [-f --force] [--system]src/cli/reshim.rsCreates new shims based on bin paths from currently installed tools.
This creates new shims in the configured user shim directory for CLIs that have been added.
With --system, it rebuilds the configured system shim farm instead.
mise will try to do this automatically for commands like npm i -g but there are
other ways to install things (like using yarn or pnpm for node) that mise does
not know about and so it will be necessary to call this explicitly.
If you think mise should automatically call this for a particular command, please open an issue on the mise repo. You can also set up a shell function to reshim automatically (it's really fast so you don't need to worry about overhead):
npm() {
command npm "$@"
mise reshim
}
Note that this creates shims for all installed tools, not just the ones that are currently active in mise.toml.
-f --force — Removes all shims before reshimming--system — Rebuild the system shim farm-h --help — Print helpExamples:
$ mise reshim
$ ~/.local/share/mise/shims/node -v
v20.0.0