mise use [OPTIONS] [TOOL@VERSION]...
Aliases: u
text
Install tool version and add it to config
This will install the tool if it is not already installed.
By default, this will use an `.mise.toml` file in the current directory.
Use the --global flag to use the global config file instead.
This replaces asdf's `local` and `global` commands, however those are still available in mise.
Usage: use [OPTIONS] [TOOL@VERSION]...
Arguments:
[TOOL@VERSION]...
Tool(s) to add to config file
e.g.: node@20, cargo:ripgrep@latest npm:prettier@3
If no version is specified, it will default to @latest
Options:
-f, --force
Force reinstall even if already installed
--fuzzy
Save fuzzy version to config file
e.g.: `mise use --fuzzy node@20` will save 20 as the version
this is the default behavior unless MISE_ASDF_COMPAT=1
-g, --global
Use the global config file (~/.config/mise/config.toml) instead of the local one
-e, --env <ENV>
Modify an environment-specific config file like .mise.<env>.toml
-j, --jobs <JOBS>
Number of jobs to run in parallel
[default: 4]
[env: MISE_JOBS=]
--raw
Directly pipe stdin/stdout/stderr from plugin to user Sets --jobs=1
--remove <PLUGIN>
Remove the plugin(s) from config file
-p, --path <PATH>
Specify a path to a config file or directory If a directory is specified, it will look for .mise.toml (default) or .tool-versions
--pin
Save exact version to config file
e.g.: `mise use --pin node@20` will save 20.0.0 as the version
Set MISE_ASDF_COMPAT=1 to make this the default behavior
Examples:
# set the current version of node to 20.x in .mise.toml of current directory
# will write the fuzzy version (e.g.: 20)
$ mise use node@20
# set the current version of node to 20.x in ~/.config/mise/config.toml
# will write the precise version (e.g.: 20.0.0)
$ mise use -g --pin node@20
# sets .mise.local.toml (which is intended not to be committed to a project)
$ mise use --env local node@20
# sets .mise.staging.toml (which is used if MISE_ENV=staging)
$ mise use --env staging node@20