Dev tools, env vars, and tasks in one CLI | mise-en-place

mise-en-place

5 min read Original article ↗

mise run, the theme song

Dev tools, env vars, and tasks in one CLI

mise is pronounced “meez”

mise installs a project's tools, sets its environment variables, and runs its tasks from one mise.toml that works in your shell, editor, and CI. With mise bootstrap, it can also set up a whole machine: packages, dotfiles, and services.

curl -fsSL https://mise.run | sh

macOS & Linux Installing on Windows?

mise.tomlExample configuration

[tools]
node = "24"
python = "3.14"

Example output ~/my-project

$ mise install
✓ installed 2 tools in 6.2s: node@24.21.0, python@3.14.8

Explore tools

What mise manages

$ mise use node@24

Dev tools

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

Environments

Load a project's environment variables from mise.toml, .env files, and secrets when you enter its directory.

Read the environments guide

$ mise run test

Tasks

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

Bootstrap

Set up a whole machine: system packages, dotfiles, repositories, services, macOS defaults, and tools.

Read the bootstrap guide

Each part works without the others, so you can start with one tool or one task. A project that already has .nvmrc or .python-version can keep it: mise reads those files once you enable them.

Switch between project environments

Activate mise in your shell once. From then on, entering a project puts its installed tool versions on your PATH and loads its environment variables. Leave the project and mise restores the environment for your new directory.

  • Shell activation for bash, zsh, fish, Nushell, PowerShell, and more
  • Shims for editors and scripts that never read your shell startup file
  • mise exec for scripts and containers, and a GitHub Action for CI

Active shell~/work/api

Node
22

APP_ENV
api

Choose a project to see its environment. Shell activation and installed tool versions are required.

— Tool registry

1,000+tools in the registry, from node to terraform

Sourced from packslip, aqua, GitHub releases, cargo, npm, pypi, go, gem, http, vfox, and more.

mise.lockwritten by mise lock

[[tools.node]]

version = "24.21.0"

backend = "core:node"

[tools.node."platforms.linux-x64"]

checksum = "sha256:6e1db87ef58b…"

url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-linux-x64.tar.gz"

[tools.node."platforms.macos-arm64"]

checksum = "sha256:bed7eea5325e…"

url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-darwin-arm64.tar.gz"

Lock and verify what you install

node = "24" in mise.toml is a request. mise lock resolves it and writes the exact version to mise.lock, with the download URL and checksum for each platform you lock. Commit that file, and mise install --locked installs exactly what it records.

  • Checksums, signatures, and build attestations, where a tool publishes them, checked by mise itself with no gpg or cosign to install
  • A minimum release age: by default mise skips versions published in the last 24 hours when it chooses a version for a prefix such as node@24 or for latest, for backends that report release dates
  • Configuration trust: outside CI, a config that can run code loads only once you trust it, at the prompt or by running a command such as mise install or mise run in the project

Read the lockfile guide or the security overview.

Set up a machine with mise bootstrap

Declare the packages, repositories, dotfiles, and services a machine needs, then apply them with mise bootstrap. 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.

  • Packages from apt, dnf, pacman, Homebrew, scoop, winget, and other package managers
  • Dotfiles tracked in place with history you can roll back, or applied as symlinks, copies, and templates
  • Remote hosts over SSH with mise bootstrap remote

Set up a new machine from a repository that holds your mise.toml:

mise bootstrap --from git@github.com:you/dotfiles.git

Read the bootstrap guide or the dotfiles guide.

Declare your setupmise.toml[bootstrap.packages]
[bootstrap.repos]
[dotfiles]
[bootstrap.services]

mise bootstrap

Packagesbrew · apt · scoop · winget · choco

RepositoriesProject checkouts

DotfilesTrack · link · template

ServicesBackground processes

mise bootstrap --dry-run shows what changes before you apply it.

Run your first project task

  1. Step 1

    Install mise

    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 irm https://mise.run/powershell | iex in PowerShell. See Installing mise for other methods.

    $ curl -fsSL https://mise.run | sh

    $ ~/.local/bin/mise --version

  2. Step 2

    Try a tool

    mise exec installs Node.js 24 if needed and runs one command with it. Your shell and config files stay as they were.

    $ mise exec node@24 -- node --version

    v24.x.x

  3. Step 3

    Set up a project

    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.

    $ mkdir my-project && cd my-project

    $ mise use node@24

    mise ~/my-project/mise.toml tools: node@24.x.x

    $ mise set NODE_ENV=development

    $ mise tasks add hello -- node -p process.env.NODE_ENV

    $ mise run hello

    [hello] $ node -p process.env.NODE_ENV

    development

  4. Step 4 (optional)

    Activate mise in your shell

    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.

    # bash

    $ echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc

    # zsh

    $ echo 'eval "$(~/.local/bin/mise activate zsh)"' >> "${ZDOTDIR:-$HOME}/.zshrc"

    # fish

    $ mkdir -p ~/.config/fish

    $ echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish

Fit mise into your setup

— Install mise

Allez. Prep your station.

curl -fsSL https://mise.run | sh

— Related project

Share Cargo builds with Mr Boxington

Give every Cargo checkout one shared, self-pruning compilation cache, locally and in CI.

mr-boxington.jdx.dev