Install mise
Use this when setting up a machine to manage development runtimes like Ruby and Node with mise.
Install mise
Section titled “Install mise”On macOS, install mise with Homebrew.
brew install miseUbuntu 26.04+
Section titled “Ubuntu 26.04+”On Ubuntu 26.04 or newer, install mise with apt using the official PPA.
sudo add-apt-repository -y ppa:jdxcode/misesudo apt update -ysudo apt install -y miseOlder Ubuntu or Debian
Section titled “Older Ubuntu or Debian”On older Ubuntu versions or Debian, add the mise apt repository first, then install mise.
sudo apt update -ysudo apt install -y curlsudo install -dm 755 /etc/apt/keyringscurl -fSs https://mise.en.dev/gpg-key.pub | sudo tee /etc/apt/keyrings/mise-archive-keyring.asc > /dev/nullecho "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.asc] https://mise.en.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.listsudo apt update -ysudo apt install -y miseStandalone fallback
Section titled “Standalone fallback”Use the standalone installer when Homebrew or apt is not the right fit.
curl https://mise.run | shActivate mise in the shell
Section titled “Activate mise in the shell”Add mise activation to the shell config file.
For Zsh:
echo 'eval "$(mise activate zsh)"' >> ~/.zshrcsource ~/.zshrcFor Bash:
echo 'eval "$(mise activate bash)"' >> ~/.bashrcsource ~/.bashrcVerify mise
Section titled “Verify mise”Check that the mise command is available.
mise --versionCheck which tools mise is managing.
mise currentInstall Ruby
Section titled “Install Ruby”Install and activate the latest Ruby version for the current project.
mise use ruby@latestruby -vUse --global when setting the default Ruby version for the whole machine.
mise use --global ruby@latestruby -vInstall Node
Section titled “Install Node”Install and activate the latest Node.js version for the current project.
mise use node@latestnode -vnpm -vUse --global when setting the default Node.js version for the whole machine.
mise use --global node@latestnode -vnpm -vRefresh shims
Section titled “Refresh shims”Refresh mise shims after installing command-line tools through a language package manager, such as Ruby gems or global npm packages.
mise reshimFor example, after installing Rails:
gem install railsmise reshimrails -v