跳转到内容

mise shell ​

  • 用法: mise shell [FLAGS] <TOOL@VERSION>…
  • 别名: sh
  • 效果: 只读
  • 源代码: src/cli/shell.rs

为当前 shell 会话设置工具版本

Installs the version if needed, then sets MISE_<TOOL>_VERSION, such as MISE_NODE_VERSION, to the resolved version in the current shell. That overrides config files until you close the shell or run mise shell --unset <TOOL>. Requires mise activate: the shell function it defines applies the variable that this command prints.

Arguments ​

  • <TOOL@VERSION>… — Tools to set, such as node@20

Flags ​

  • -j --jobs <JOBS> — Number of jobs to run in parallel (default: the jobs setting)

    Environment Variable: MISE_JOBS

  • -u --unset — Remove a version set earlier with mise shell

  • --raw — Connect the install commands' stdin, stdout, and stderr to the terminal

    Implies --jobs=1.

  • -h --help — Print help

示例 ​

Use node 20 in this shell

mise shell node@20
node -v
v20.19.5

Go back to the version the config requests

mise shell --unset node

相关文档 ​