mise trust
- Usage:
mise trust [FLAGS] [CONFIG_FILE] - Effect: modifies state
- Source code:
src/cli/trust.rs
Mark a config file as trusted
Trust lets mise load the parts of a config file that can run code or change your environment. A mise command you type in a terminal, with stdin, stdout and stderr all on it, trusts the project's config for you and says so, unless paranoid mode's config category is on or the config belongs to another account. Otherwise mise prompts, skips the file, or fails with an untrusted-config error when it cannot prompt.
A file with no template syntax that contains only min_version, [tools] entries with plain version strings (or arrays of them), and [tasks] in which no task lists secrets does not need trust unless paranoid mode is on. Commands that run project code (mise run, the mise <task> shorthand, mise install, mise exec, mise watch, and mise daemons start|restart|register) trust their active config automatically.
In paranoid mode, mise trust with no path also trusts the env files and scripts that config reads (env._.file, env._.source and the env_file setting), which have trust of their own. Give a file's path to trust only that file.
Trusting a config file in a repository's main checkout also trusts the same path in its git worktrees. --worktrees trusts it in every checkout of the repository instead, from any of them, which is how worktrees of a bare repository share trust. Paranoid mode (https://mise.jdx.dev/paranoid.html) turns off automatic and worktree trust and requires trust, tied to the file's contents, for every config outside the global and system config. See https://mise.jdx.dev/security.html#configuration-trust
Arguments
[CONFIG_FILE]— The config file whose trust status to change
Flags
-a --all— Trust all config files in the current directory, its parents, and its subdirectoriesSubdirectories are walked respecting .gitignore, skipping hidden directories and common build and dependency directories (node_modules, vendor, target, dist, build).
--ignore— Do not trust this config and ignore it in the future--show— Show the trust status of config files in the current directory and its parentsDoes not trust or untrust any files.
--untrust— Remove explicit trust for this config--worktrees— Trust this config in every checkout of its git repositoryCovers the same path in the main checkout and in every linked worktree, including worktrees created later and worktrees of a bare repository. A config at another path in a worktree still needs its own trust. With
--untrust, removes this grant. Not available in paranoid mode, which ties trust to each file's contents.-h --help— Print help
Examples
Trust the nearest untrusted config in this directory or a parent, and in paranoid mode the env files it reads
mise trustTrust a specific file
mise trust ~/src/app/mise.tomlTrust the nearest config here in every worktree of this git repository
mise trust --worktreesList configs here and above with their trust status
mise trust --show