Skip to content

Ubuntu26.04LTSにmiseをワンライナーでインストールする

以前にPython を mise でインストールし、uv の venv で仮装環境を管理するというメモを書きました。miseのインストール手順は公式サイトのGetting Startedに書かれていますが、Ubuntu26.04LTSへaptリポジトリを利用せず、ワンライナーでインストールする手順をメモしておきます。

検証環境

対象 バージョン
Ubuntu 26.04LTS

ワンライナーでインストールする

Linux/macOSであれば以下を実行するだけです。

curl https://mise.run | sh

インストールが完了したらシェルの設定ファイルに起動用コマンドを追記します。

1
echo "eval \"\$(/root/.local/bin/mise activate zsh)\"" >> "$HOME/.zshrc"

設定変更を反映する為、シェルを再起動します。mise --versionを実行してバージョン情報が表示されれば、インストールは完了です。

# mise --version
              _                                        __
   ____ ___  (_)_______        ___  ____        ____  / /___ _________
  / __ `__ \/ / ___/ _ \______/ _ \/ __ \______/ __ \/ / __ `/ ___/ _ \
 / / / / / / (__  )  __/_____/  __/ / / /_____/ /_/ / / /_/ / /__/  __/
/_/ /_/ /_/_/____/\___/      \___/_/ /_/     / .___/_/\__,_/\___/\___/
                                            /_/                 by @jdx
2026.5.16 linux-x64 (2026-05-28)

環境に問題が無いことを確認するにはmise doctorを実行します。

mise doctor

参考

miseのヘルプ

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# mise --help
mise prepares your development environment before each command runs. https://github.com/jdx/mise

Usage: mise [OPTIONS] [TASK] [COMMAND]

Commands:
  activate      Initializes mise in the current shell session
  tool-alias    Manage tool version aliases.
  backends      Manage backends
  bin-paths     List all the active runtime bin paths
  cache         Manage the mise cache
  completion    Generate shell completions
  config        Manage config files [aliases: cfg]
  deactivate    Disable mise for current shell session
  doctor        Check mise installation for possible problems [aliases: dr]
  en            Starts a new shell with the mise environment built from the current configuration
  env           Exports env vars to activate mise a single time [aliases: e]
  exec          Execute a command with tool(s) set [aliases: x]
  fmt           Formats mise.toml
  generate      Generate files for various tools/services [aliases: gen]
  implode       Removes mise CLI and all related data
  edit          Edit mise.toml interactively
  install       Install a tool version [aliases: i]
  install-into  Install a tool version to a specific path
  latest        Gets the latest available version for a plugin
  link          Symlinks a tool version into mise [aliases: ln]
  lock          Update lockfile checksums and URLs for all specified platforms
  ls            List installed and active tool versions [aliases: list]
  ls-remote     List runtime versions available for install.
  mcp           [experimental] Run Model Context Protocol (MCP) server
  oci           [experimental] Build OCI container images from a mise.toml
  outdated      Shows outdated tool versions
  patrons       Show the individuals supporting mise as Patron-tier members
  plugins       Manage plugins [aliases: p]
  deps          [experimental] Manage project dependencies [aliases: dep]
  prune         Delete unused versions of tools
  registry      List available tools to install
  reshim        Creates new shims based on bin paths from currently installed tools.
  run           Run task(s) [aliases: r]
  search        Search for tools in the registry
  self-update   Updates mise itself.
  set           Set environment variables in mise.toml
  settings      Manage settings
  shell         Sets a tool version for the current session. [aliases: sh]
  shell-alias   Manage shell aliases.
  sync          Synchronize tools from other version managers with mise
  tasks         Manage tasks [aliases: t]
  test-tool     Test a tool installs and executes
  token         Display git provider tokens mise will use
  tool          Gets information about a tool
  tool-stub     Execute a tool stub
  trust         Marks a config file as trusted
  uninstall     Removes installed tool versions
  unset         Remove environment variable(s) from the config file.
  untrust       No longer trust a config, will prompt in the future
  unuse         Removes installed tool versions from mise.toml [aliases: rm, remove]
  upgrade       Upgrades outdated tools [aliases: up]
  use           Installs a tool and adds the version to mise.toml. [aliases: u]
  version       Display the version of mise [aliases: v]
  watch         Run task(s) and watch for changes to rerun it [aliases: w]
  where         Display the installation path for a tool
  which         Shows the path that a tool's bin points to.
  help          Print this message or the help of the given subcommand(s)

Arguments:
  [TASK]
          Task to run.

          Shorthand for `mise tasks run <TASK>`.

Options:
  -C, --cd <DIR>
          Change directory before running command

  -E, --env <ENV>
          Set the environment for loading `mise.<ENV>.toml`

  -j, --jobs <JOBS>
          How many jobs to run in parallel [default: 8]

          [env: MISE_JOBS=]

  -q, --quiet
          Suppress non-error messages

  -v, --verbose...
          Show extra output (use -vv for even more)

  -y, --yes
          Answer yes to all confirmation prompts

      --no-config
          Do not load any config files

          Can also use `MISE_NO_CONFIG=1`

      --no-env
          Do not load environment variables from config files

          Can also use `MISE_NO_ENV=1`

      --no-hooks
          Do not execute hooks from config files

          Can also use `MISE_NO_HOOKS=1`

      --output <OUTPUT>


      --raw
          Read/write directly to stdin/stdout/stderr instead of by line

      --locked
          Require lockfile URLs to be present during installation

          Fails if tools don't have pre-resolved URLs in the lockfile for the current platform.
          This prevents API calls to GitHub, aqua registry, etc.
          Can also be enabled via MISE_LOCKED=1 or settings.locked=true

      --silent
          Suppress all task output and mise non-error messages

  -h, --help
          Print help (see a summary with '-h')

Examples:

    $ mise install node@20.0.0       Install a specific node version
    $ mise install node@20           Install a version matching a prefix
    $ mise install node              Install the node version defined in config
    $ mise install                   Install all plugins/tools defined in config

    $ mise install cargo:ripgrep     Install something via cargo
    $ mise install npm:prettier      Install something via npm

    $ mise use node@20               Use node-20.x in current project
    $ mise use -g node@20            Use node-20.x as default
    $ mise use node@latest           Use latest node in current directory

    $ mise up --interactive          Show a menu to upgrade tools

    $ mise x -- npm install          `npm install` w/ config loaded into PATH
    $ mise x node@20 -- node app.js  `node app.js` w/ config + node-20.x on PATH

    $ mise set NODE_ENV=production   Set NODE_ENV=production in config

    $ mise run build                 Run `build` tasks
    $ mise watch build               Run `build` tasks repeatedly when files change

    $ mise settings                  Show settings in use
    $ mise settings color=0          Disable color by modifying global config file