miseとは?
miseは、Node.js、Ruby、Python、Goなど、様々なプログラミング言語やツールのバージョンをプロジェクトごとに管理できるツールです。従来のバージョン管理ツール(rbenv、pyenv、nodenvなど)の機能を統合し、よりシンプルで効率的なバージョン管理ができます。
またasdf に代替として人気が出てきており、Rust製なのでasdfより高速で動きます。またasdfと違いプラグインの追加・削除をしなくて良いので非常に使い勝手が良いです。私はasdfからmiseに乗り換えました。
軽く紹介しつつ、コマンドをついつい忘れてしまうので備忘録として残します。
インストール方法
ここを見てください。
Installing Mise | mise-en-place
mise-en-place documentation
今回利用したバージョン
- mise 2025.2.9
よく使うコマンド
プラグイン一覧
% mise registry
Tool Backends
1password asdf:mise-plugins/mise-1password-cli aqua:1password/cli
1password-cli asdf:mise-plugins/mise-1password-cli aqua:1password/cli
aapt2 asdf:mise-plugins/mise-aapt2
act aqua:nektos/act ubi:nektos/act asdf:gr1m0h/asdf-act
action-validator aqua:mpalmer/action-validator ubi:mpalmer/action-validator asdf:mpalmer/action-validator
actionlint aqua:rhysd/actionlint ubi:rhysd/actionlint asdf:crazy-matt/asdf-actionlint
adr-tools aqua:npryce/adr-tools asdf:https://gitlab.com/td7x/asdf/adr-tools
ag asdf:mise-plugins/mise-ag
age aqua:FiloSottile/age asdf:threkk/asdf-age
...
# 特定のキーワードで絞りたい場合はgrepを使うのがおすすめ
% mise registry | grep node
node core:node
インストール済みのプラグイン一覧
% mise ls
Tool Version Source Requested
node 22.14.0
node 23.8.0
python 3.11.11
python 3.12.9
python 3.13.2
プラグインをすべて更新
プラグイン個別にも更新できるがこっちのほうが楽
% mise up
mise All tools are up to date
インストール可能なプラグインのバージョン一覧をみる
# Node.jsのバージョン一覧.
% mise ls-remote node
0.1.14
0.1.15
0.1.16
0.1.17
0.1.18
...
プラグインの任意のバージョンをインストール
# Node.jsの最新版をインストール.
% mise install node@latest
# Node.jsの特定のバージョンをインストール.
% mise install [email protected]
プラグインの任意のバージョンをアンインストール
# Node.jsの特定のバージョンをアンインストール.
% mise uninstall [email protected]
プロジェクトに任意のプラグインのバージョンを設定
% cd プロジェクトフォルダ
% mise use [email protected]
プロジェクトに設定された任意のプラグインをインストール
% cd mise.tomlがあるプロジェクトフォルダ
% mise install
プラグインの任意のバージョンをグローバル(システム)環境に設定
% mise use -g [email protected]
リンク
Home | mise-en-place
mise-en-place documentation
コメント