docs/dev-tools/backends/gem.md
mise can be used to install CLIs from RubyGems. The code for this is inside of the mise repository at ./src/backend/gem.rs.
This relies on having gem (provided with ruby) installed. You can install it with or without mise.
Here is how to install ruby with mise:
mise use -g ruby
The following installs the latest version of rubocop and sets it as the active version on PATH:
mise use -g gem:rubocop
rubocop --version
The version will be set in ~/.config/mise/config.toml with the following format:
[tools]
"gem:rubocop" = "latest"
If the ruby version used by a gem package changes, (by mise or system ruby), you may need to reinstall the gem. This can be done with:
mise install -f gem:rubocop
Or you can reinstall all gems with:
mise install -f "gem:*"
Set these with mise settings set [VARIABLE] [VALUE] or by setting the environment variable listed.