mise reshim
- Usage:
mise reshim [-f --force] [--system] - Effect: modifies state
- Source code:
src/cli/reshim.rs
Create shims for the executables of currently installed tools
This creates shims in the user shim directory for executables that have been added since the last reshim. With --system, it rebuilds the system shim farm instead. mise runs this automatically after commands like npm i -g, but other ways of installing executables (such as yarn or pnpm for node) are not detected, so call this explicitly then.
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.
Flags
-f --force— Rebuild all mise-owned shims--system— Rebuild the system shim farm-h --help— Print help
Examples:
$ mise reshim
$ ~/.local/share/mise/shims/node -v
v20.0.0