3 Software mise
Drew edited this page 2026-10-01 18:51:23 -04:00

mise

mise gives every project the current version of its language toolchain — Hugo, Go, Node, Rust, Python, Zig — pulled straight from upstream, never from Debian's months-behind apt. No root, no version conflicts, nothing in your repo but a tiny mise.toml.


Why bother — the gap is not small

Debian ships stable, then freezes; upstream dev tools ship weekly. By mid-release-cycle a Trixie box is months to years behind, and tutorials assume the new version. Measured on Debian 13 (Trixie):

Tool apt install mise use …@latest Behind by
Hugo 0.131.0 0.162.1 31 releases
Go 1.24 1.26.3 2 minor
Node 20.19 26.2 6 major
Rust 1.85.0 1.96.0 11 releases
Python 3.13.5 3.14.5 a full minor
Zig not packaged 0.17-dev apt can't help you

The build errors a beginner blames on themselves are almost always just an old apt package. With mise your Debian is never versions behind, and mise upgrade keeps it there.

The trick, in one line: point at upstream's repo, don't mirror it. mise itself comes from apt and updates with apt upgrade; the toolchains it manages come from each tool's own upstream and update with mise upgrade. They never touch each other.


Install

mise isn't in Debian, but Debian's own extrepo knows where it lives. extrepo is a curated list of outside repositories: it ships the key and the source entry for you, so nothing gets fetched and trusted by hand, and mise then updates with the rest of your system.

sudo apt install -y extrepo
sudo extrepo enable mise
sudo apt update
sudo apt install -y mise

Prefer one command? install_mise.sh in butterscripts (setup/install_mise.sh) does the install and the two setup steps below, activation and shims. It's also in the butterscripts optional-tools menu, under Butterscripts Installers. Re-run it anytime; it skips what's already done.

Installed earlier with a hand-added key and /etc/apt/sources.list.d/mise.list? That still works and still updates. Don't enable the extrepo entry on top of it, or apt will complain about the same repository twice.


Activate it — ⚠ the #1 thing people get wrong

Installing the package does not change your PATH. mise hooks into your shell to switch tool versions on and off, so you turn it on once.

Activation is shell-specific. mise activate bash only works in bash; mise activate zsh only works in zsh. Wire up bash while your terminal actually runs zsh and your tools silently never appear — zsh even throws no such hash table element: _mise_hook. Match your login shell, not whatever's running right now:

basename "$(getent passwd "$USER" | cut -d: -f7)"   # -> bash or zsh

Add the matching hook to the matching rc file, then reload your login shell:

echo 'eval "$(mise activate bash)"' >> ~/.bashrc    # or 'zsh' into ~/.zshrc
exec "$(basename "$(getent passwd "$USER" | cut -d: -f7)")"

If you recently ran chsh, your desktop session keeps the old shell until you log out and back in — a new terminal tab is not enough. Then confirm with mise doctor (should report activated: yes).


Editors and launchers — the half people miss

Activation lives in your shell's rc file, so it only helps programs you start from a terminal. An editor opened from a launcher or a keybind never runs that file, and it will tell you zig: not found while your terminal finds it fine.

mise's answer is shims: a folder of small stand-ins, one per tool, that has to be on the PATH of your whole login session:

echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.profile

~/.profile covers X11 sessions, TTY logins and ssh. A Wayland session started by a display manager does not read ~/.profile. On mango the session script sources ~/.config/mango/env instead, so the line goes there too, without the export:

echo 'PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.config/mango/env

Then log out and back in. install_mise.sh does both of these for you.


Use a project

The whole model in one sentence: a project is just a directory with a mise.toml. There's no "create" command — you make a folder and pin tools. mise turns the right versions on when you cd in, off when you leave.

mkdir ~/code/myapp && cd ~/code/myapp

# Pin the tools this project needs — writes ./mise.toml AND installs them.
# List every tool you want; pinning one does NOT pin the others.
mise use node@lts go@latest

git add mise.toml && git commit -m "pin toolchain with mise"

mise.toml is the lockfile for your toolchain — commit it. The binaries live under ~/.local/share/mise/ (per-user, no root), never in the repo. Someone who clones the repo gets the exact same toolchain with two commands:

mise trust       # one-time: OK this config (it wasn't written on this box)
mise install     # fetch every tool/version listed in mise.toml

Command reference

Command What it does
mise use <tool>@<ver> Pin a tool in the current dir's mise.toml and install it
mise use -g <tool>@<ver> Set a global default for when you're not in a project
mise install Install everything listed in the local mise.toml (the clone handoff)
mise trust Trust this dir's mise.toml so mise auto-loads it (--all to stop asking)
mise ls --current List tools active right here and which file pins them
mise outdated Show tools with a newer upstream release
mise upgrade Bump tools to the newest version your pins allow
mise doctor Diagnose activation + config problems

Troubleshooting

None of these are mise bugs — just easy ways to think it failed.

  1. Wrong shell / changed shell without re-login. The most common one — see the activation warning above. echo "$SHELL" vs the getent line; if they disagree, log out and back in.
  2. command not found for a tool you "installed". mise only puts a tool on PATH inside a dir whose mise.toml pins it. mise use node@lts pins node only — pin everything you want in one go: mise use node@lts go@latest zig@latest.
  3. Config files … are not trusted. A safety feature, not an error — run mise trust once in a project you own. Don't blindly trust configs you didn't write.
  4. Works in the terminal, not found in an editor from the launcher. The editor never ran your shell's rc file. Put the shims folder on the session PATH — see Editors and launchers above — and log out and back in.

When in doubt, mise doctor reports whether activation is live and what's wrong.


Uninstall

Leaves the machine as it was:

sudo apt-get remove --purge -y mise
# the extrepo source and key (and the older hand-added pair, if that's what you had)
sudo rm -f /etc/apt/sources.list.d/extrepo_mise.sources /var/lib/extrepo/keys/mise.asc
sudo rm -f /etc/apt/sources.list.d/mise.list /etc/apt/keyrings/mise-archive-keyring.gpg
sudo apt-get update

sed -i '/mise activate/d' ~/.bashrc ~/.zshrc 2>/dev/null
sed -i '/mise.shims/d' ~/.profile ~/.config/mango/env 2>/dev/null
rm -rf ~/.local/share/mise ~/.config/mise
exec "$(basename "$(getent passwd "$USER" | cut -d: -f7)")"