mise reshim
- 用法:
mise reshim [-f --force] [--system] - 效果: 修改状态
- 源代码:
src/cli/reshim.rs
为已安装的工具提供的可执行文件创建 shim
Run this when an executable was added to an existing installation outside mise, for example after a language package manager installed a CLI globally. It rebuilds your shim directory (~/.local/share/mise/shims by default). --system rebuilds the system shim directory used by mise install --system.
Shims are created for all installed versions. When invoked, a shim picks the version to run from the current config. --force rebuilds mise-owned shims; it does not turn unrelated files into mise-owned shims. See https://mise.jdx.dev/dev-tools/shims.html
Flags
-f --force— Rebuild all mise-owned shims--system— Rebuild the system shims, for tools installed withmise install --system-h --help— Print help
示例
Rebuild shims, then run node through its shim
mise reshim
~/.local/share/mise/shims/node -v
v24.11.0