mise link
- 用法:
mise link [-f --force] <TOOL@VERSION> <PATH> - 别名:
ln - 作用: 修改状态
- 源代码:
src/cli/link.rs
将工具版本符号链接到 mise
Use this to register an install that was compiled by hand or built with another tool. mise uses the version exactly as written, such as [email protected] or a name of your own like node@brew; latest, aliases, and channels are rejected.
Arguments
<TOOL@VERSION>— Tool and version to create a symlink for<PATH>— Directory of the existing installation, such as~/.nvm/versions/node/v24.11.0
Flags
-f --force— Replace an existing installation of this version-h --help— Print help
示例
Link a node that node-build built into ~/.nodes/24.11.0
mise link [email protected] ~/.nodes/24.11.0Register Homebrew's node as node@brew; then run mise use node@brew
mise link node@brew "$(brew --prefix node)"