Tools for other accounts
[tools] installs tools for the account that runs mise bootstrap. [bootstrap.tools.<account>] installs tools as another account on the same machine, into that account's own mise data directory, such as a Rust toolchain for the service account a CI runner runs as.
Example
This installs Rust for the mise-ci account, with rustup and cargo in directories outside its home:
[bootstrap.tools.mise-ci]
tools = { rust = "1.91.1" }
env = { CARGO_HOME = "/opt/mise-ci/cargo", RUSTUP_HOME = "/opt/mise-ci/rustup" }mise installs as the account, so the account must be able to create or write CARGO_HOME and RUSTUP_HOME. mise does not create those directories for it; declare /opt/mise-ci in [bootstrap.directories] with mise-ci as its owner, or create it some other way first.
Preview it, then apply it. files applies [bootstrap.directories] before tools installs; add accounts when bootstrap also creates the account:
mise bootstrap --only files,tools --dry-run
mise bootstrap --only files,toolsmise bootstrap status lists each tool as an account-tool row, with the directory it is installed in.
Each entry works like a small mise.toml for that account: tools names the tools and versions, as [tools] does, and env sets the environment variables the install runs with. The account must exist when the tools step runs; declare it in [bootstrap.users] to create it earlier in the same run.
How mise runs as the account
The bootstrap user often cannot read another account's home or write its data directory, so mise does not install these tools itself. It starts a privileged copy of itself with sudo, as it does for users and groups, and that copy runs mise install as the account:
- with the account's user ID, primary group, and supplementary groups;
- in a clean environment:
HOME,USER, andLOGNAMEcome from the account,SHELLis/bin/sh, andPATHis the system default, so an account whose login shell is/usr/bin/falseworks; - in
/as its working directory, so it does not matter that the account cannot enter the directory you ranmise bootstrapfrom; - with
--no-config, so neither your config nor amise.tomlin the account's home changes what is installed.
The account runs the same mise binary as you do, so put mise somewhere every account can run it, such as /usr/local/bin/mise. A mise under your home directory fails with account 'mise-ci' cannot run .... With mise bootstrap remote, set install_mise to such a path.
Tools that mise installs as the account land in that account's mise data directory, by default ~/.local/share/mise under its home. Set MISE_DATA_DIR in env to use another one.
Versions and options
A version can be anything mise install accepts, such as "22", "stable", or "latest". A list installs several versions side by side. Options go in brackets after the tool name:
[bootstrap.tools.mise-ci]
tools = { node = ["22", "24"], "rust[profile=minimal]" = "stable" }mise runs mise install as the account with every declared tool, so only the missing ones are installed and installed versions stay in place. Status and --dry-run check each tool with mise where as the account. A version that resolves to a new release, such as "latest", is installed when it is not yet present; older installs stay. Status and --dry-run count such a version as installed while any release of it is, so a new release shows up only when the tools step installs it.
How configs combine
When several config files in one config root declare the same account, the most local declaration is used as a whole, and an included file's declaration sits below the file that includes it. mise does not merge tools or env across files. Declarations of one account in different config roots must agree, or mise stops with an error.
Reference
| Field | Default | Effect |
|---|---|---|
tools | {} | Tools to install, keyed by tool name; each value is a version or a list of versions |
env | {} | Environment variables for the install, such as CARGO_HOME; it cannot set HOME, USER, or LOGNAME |
[bootstrap.tools] works on Linux and macOS.