CLI 中的开发工具、环境变量和任务
mise 的发音是 “meez”
mise 从一个能在 shell、编辑器和 CI 中通用的 mise.toml 安装项目工具、设置环境变量并运行任务。借助 mise bootstrap,它还可以配置整台机器,包括软件包、点文件和服务。
curl -fsSL https://mise.run | shmacOS & Linux 正在 Windows 上安装?
# 此项目的工具版本
[tools]
node = "24"
python = "3.14"
输出示例 ~/my-project
$ mise install
✓ 在 6.2 秒内安装了 2 个工具:[email protected]、[email protected]
01 基础功能
$ mise use node@24
Install any of 1,000+ tools, choose a version for each project, and switch automatically as you move between directories.
Read the dev tools guide$ mise env
Load a project's environment variables from mise.toml, .env files, and secrets when you enter its directory.
$ mise run test
Define build, test, lint, and deploy commands next to the tools and environment variables they need, with dependencies and parallel runs.
Read the tasks guide$ mise bootstrap
Set up a whole machine: system packages, dotfiles, repositories, services, macOS defaults, and tools.
Read the bootstrap guideAlready have .tool-versions, .nvmrc, or .python-version files? mise reads .tool-versions as it is and reads the others once you enable them.
02 日常使用
只需在 shell 中激活一次 mise。之后,进入项目时,其已安装的工具版本会加入你的 PATH,并加载项目的环境变量。离开项目后,mise 会为新目录恢复环境。
mise exec for scripts and containers, and a GitHub Action for CI03 新机器
[bootstrap.packages]
[bootstrap.repos]
[dotfiles]
[bootstrap.services]mise bootstrapmise bootstrap --dry-run shows what will change before you apply it. Declare the packages, repositories, dotfiles, and services a machine needs, then apply them with mise bootstrap. Run mise bootstrap --dry-run first to see what will change. This setup belongs to the machine, not to a project, so it usually lives in your global config or in a repository of your own.
mise bootstrap remoteSet up a new machine from a repository that holds your mise.toml:
mise bootstrap --from [email protected]:you/dotfiles.git04 快速开始
On macOS or Linux, run the installer. It puts mise in ~/.local/bin; if that is not on your PATH, type ~/.local/bin/mise in the next two steps. On Windows, run winget install jdx.mise. See Installing mise for other methods.
mise exec installs Node.js 24 if needed and runs one command with it. Your shell and config files stay as they were.
These commands write [tools], [env], and [tasks.hello] to the project's mise.toml. The task runs with the project's Node.js and NODE_ENV. Commit mise.toml so teammates and CI get the same setup.
Activation puts the project's tools and environment variables in your shell when you enter the project, so node works without mise exec. Run the commands for your shell once, then open a new shell. For PowerShell, Nushell, and others, see Shell setup.
— Install mise
curl -fsSL https://mise.run | sh— Related project
Give every Cargo checkout one shared, self-pruning compilation cache, locally and in CI.