Skip to content

Getting Started

This will show you how to install mise and get started with it. This is a suitable way when using an interactive shell like bash, zsh, or fish.

1. Install mise CLI

See installing mise for other ways to install mise (apt, yum, nix, etc.).

shell
curl https://mise.run | sh

By default, mise will be installed to ~/.local/bin (this is simply a suggestion. mise can be installed anywhere). You can verify the installation by running:

shell
~/.local/bin/mise --version
# mise 2024.x.x

INFO

  • ~/.local/bin does not need to be in PATH. mise will automatically add its own directory to PATH when activated.
  • mise respects MISE_DATA_DIR and XDG_DATA_HOME if you'd like to change these locations.

2. Activate mise

Now that mise is installed, you can optionally activate it or add its shims to PATH.

  • mise activate method updates your environment variable and PATH every time your prompt is run to ensure you use the correct versions.
  • Shims are symlinks to the mise binary that intercept commands and load the appropriate environment

For interactive shells, mise activate is recommended. In non-interactive sessions, like CI/CD, IDEs, and scripts, using shims might work best. You can also not use any and call mise exec/run directly instead. See this guide for more information.

sh
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
sh
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
sh
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
  • Make sure you restart your shell session after modifying your rc file in order for it to take effect.
  • Also note that this uses ~/.local/bin/mise as the binary location since that's what https://mise.run uses by default. If you've installed mise by some other means it may be on PATH or somewhere different.

3. Using mise

INFO

Of course, if using mise solely for environment management or running tasks this step is not necessary. You can use it to make sure mise is correctly setup.

Install node and set it as the global default:

sh
mise use --global node@22

You can now run node using mise exec:

sh
mise exec -- node -v
# v22.x.x

TIP

Use mise x -- node -v or set a shell alias in your shell's rc file like alias x="mise x --" to save some keystrokes.

If you did activate mise or add its shims to PATH, then node is also available directly!

sh
node -v
# v22.x.x

Note that when you ran mise use --global node@22, mise updated the global mise configuration.

shell
cat ~/.config/mise/config.toml
toml
[tools]
node = "22"

Follow the walkthrough for more examples on how to use mise.

Set up the autocompletion

See autocompletion to learn how to set up autocompletion for your shell.

Licensed under the MIT License. Maintained by @jdx and friends.