Tips and tricks
These short recipes cover everyday mise use: tracing where a tool or setting comes from, pinning a tool in a script, letting contributors run tasks without installing mise, showing the project in your shell prompt, and running Intel tools on Apple silicon. Each one links to the full guide.
Everyday commands
For running tasks, including the mise <task> shorthand and rerunning a task when files change, see Running tasks.
Open a shell with the project environment
mise en starts a new shell with the project's tools and environment variables loaded, without shell activation. Exit that shell to return to your session. Changing directories inside it does not update the environment, and the new shell's startup files can still activate mise. To skip Bash's startup file:
mise en -s "bash --norc"Find where a tool or setting comes from
mise tool ripgrep # backend, requested and active versions, config source
mise registry ripgrep # the backends the short name can resolve to
mise which rg # the executable this project runs
mise config ls # config files in use and the tools each one sets
mise settings ls # settings set in config files, and the file that set eachSee mise tool, mise registry, mise which, mise config ls and mise settings ls. For the order in which config files apply, see config file locations. To trace an environment variable, see See which variables mise set.
Scripts and wrappers
Pin a tool in a shebang
A script can name the tool and version it runs with, without a mise.toml:
#!/usr/bin/env -S mise exec node@24 -- node
console.log(`Running node: ${process.version}`);env -S splits the rest of the line into separate arguments. Run chmod +x script.js, then ./script.js; mise exec installs Node.js 24 the first time if it is missing. This needs mise on PATH and an env that supports -S, but not shell activation. Windows does not run shebang lines. To commit one wrapper per tool with more install options, use tool stubs.
Let contributors run tasks without installing mise
Commit a bin/mise wrapper that downloads a pinned mise on first use, plus one script per task:
mise generate install-script --localize --write bin/mise --windows
mise generate task-stubs --mise-bin ./bin/miseCommit bin/ and add .mise/ to .gitignore; the localized wrapper keeps mise, its tools and its cache there. Contributors then run ./bin/test from the project root, or .\bin\test.cmd on Windows. --windows also writes bin/mise.cmd, which checks the downloaded mise.exe against a checksum recorded when you generated it. Regenerate the wrapper to move to a newer mise.
mise generate task-stubs writes a stub for every task mise loads except hidden tasks and tasks from your global config. On Windows the default .cmd launchers can alter arguments that contain & ^ | " %; generate with --windows-launcher exe on Windows when arguments must arrive unchanged. For the wrapper's version pinning and directories, see CI bootstrapping.
Configuration
Install tools when you enter a project
In a shell with mise activate, an enter hook can install missing tools when you cd into the project:
[hooks]
enter = "mise install --quiet"The tools are on PATH from the next prompt. The hook downloads tools and runs their install scripts whenever you enter the directory with something missing; run mise install yourself if you prefer to choose when that happens.
Read a version from another tool's file
mise reads many version files directly once you enable them as idiomatic version files. For another format, read the file with a template. For example, the Hugo Version Manager writes .hvm with a version tag and an optional edition, such as v0.152.2/extended:
[tools]
hugo-extended = "{{ read_file(path=config_root ~ '/.hvm') | trim | split(pat='/') | first | trim_start(pat='v') }}"This keeps 0.152.2. mise installs Hugo's editions as separate tools (hugo, hugo-extended and hugo-extended-withdeploy), so use the one that matches the project's edition. config_root keeps the path relative to the config file when you run mise from a subdirectory.
Shell prompt
mise has no prompt segment of its own. In a shell with mise activate, it can print what it loads when you change directories, and it exports [env] variables that your prompt can read.
Print what changes when you enter a project
mise settings status.show_tools=true
mise settings status.show_env=trueThese commands write to your global config. Entering a project then prints lines such as:
mise +node@24.21.0
mise +API_KEY +NODE_ENVstatus.show_tools lists the tools that became active (+) or inactive (-). status.show_env lists the names of variables that mise added (+), changed (~) or removed (-), without their values.
Show the project and environment in your prompt
Set variables for the prompt in the project's mise.toml. mise exports them while you are in the project and removes them when you leave:
[env]
PROMPT_PROJECT = "{{ config_root | basename }}"
PROMPT_MISE_ENV = "{{ mise_env | default(value=[]) | join(sep=',') }}"config_root is the directory that holds the config file. mise_env lists the active config environments, whether they come from MISE_ENV or .miserc.toml. Then read the variables in your shell startup file. For Zsh, in ~/.zshrc:
setopt PROMPT_SUBST
PROMPT='${PROMPT_PROJECT:+[$PROMPT_PROJECT${PROMPT_MISE_ENV:+:$PROMPT_MISE_ENV}] }%~ %# 'For Bash, in ~/.bashrc:
PS1='${PROMPT_PROJECT:+[$PROMPT_PROJECT${PROMPT_MISE_ENV:+:$PROMPT_MISE_ENV}] }\w \$ 'In a project named web with the staging environment, the prompt starts with [web:staging]. Prompt themes that show an environment variable work the same way. For powerline-go, add shell-var to -modules and pass -shell-var PROMPT_MISE_ENV -shell-var-no-warn-empty.
Read PROMPT_MISE_ENV rather than MISE_ENV. An environment selected in .miserc.toml does not set the shell's MISE_ENV, and exporting MISE_ENV yourself overrides the .miserc.toml selection in every project.
See which variables mise set
mise env --json-extendedmise env --json-extended lists every variable mise sets in the current directory with its value and the config file that set it as source. Variables that a tool sets, such as Java's JAVA_HOME, also name the tool. The output contains real values, including values marked for redaction, so redact it before you share it. For other problems, start with mise doctor.
Platforms
Run Intel tools on Apple silicon
To install the Intel build of a tool on an Apple silicon Mac, set arch to x64 with MISE_ARCH. Give those installs their own data directory so they do not replace the native ones, and use the same two variables when you run the tools:
export MISE_DATA_DIR="$HOME/.local/share/mise-x64"
export MISE_ARCH=x64
mise install node@24
mise exec node@24 -- node --versionRosetta must be installed to run Intel binaries. Tools that mise compiles from source also need an Intel toolchain and libraries; see the tool's language guide.
If a backend needs mise itself to run as an Intel process, install the Intel build of mise next to the native one with the installer's MISE_INSTALL_ARCH variable, and use the same MISE_DATA_DIR with it:
curl -fsSL https://mise.run | MISE_INSTALL_PATH="$HOME/.local/bin/mise-x64" MISE_INSTALL_ARCH=x64 sh
"$HOME/.local/bin/mise-x64" --version