[tutorial] Using mise to manage multiple programming language environments

Note: This page is an AI-generated (gpt-5-mini-2025-08-07) translation from Traditional Chinese and may contain minor inaccuracies.

🚀 Installing mise

1
curl https://mise.run | sh
1
mise --version

image

Java

1
2
3
4
5
6
7
8
9
10
11
mise use -g java@openjdk-21
source ~/.bashrc

java --version

>>> openjdk 21.0.2 2024-01-16
>>> OpenJDK Runtime Environment (build 21.0.2+13-58)
>>> OpenJDK 64-Bit Server VM (build 21.0.2+13-58, mixed mode, sharing)

which java
>>> /home/xxx/.local/share/mise/installs/java/openjdk-21.0.2/bin/java

Rust

1
2
3
4
5
6
7
8
mise use -g rust@latest
source ~/.bashrc

which rustc
>>> /home/xxx/.cargo/bin/rustc

which cargo
>>> /home/xxx/.cargo/bin/cargo
  • The installation path for Rust is different from the others; even when installed via mise, it is installed under .cargo

Bun

1
2
3
4
5
6
7
8
mise latest bun # search for the latest version
mise use -g bun@1.3.13
source ~/.bashrc

bun --version
>>> 1.3.13
which bun
>>> /home/xxx/.local/share/mise/installs/bun/1.3.13/bin/bun

Node

1
2
3
4
5
6
7
mise use -g node@22
source ~/.bashrc

which npm
>>> /home/xxx/.local/share/mise/installs/node/22.22.2/bin/npm
which node
>>> /home/xxx/.local/share/mise/installs/node/22.22.2/bin/node

🔗 References

[tutorial] Using mise to manage multiple programming language environments

https://hsiangjenli.github.io/blog/tutorial-mise.en/

Author

Hsiang-Jen Li

Posted on

2026-03-29

Updated on

2026-04-27

Licensed under