mise unset
- Usage:
mise unset [-f --file <FILE>] [-g --global] [ENV_KEY]… - Effect: modifies state
- Source code:
src/cli/unset.rs
Remove environment variables from mise.toml
Edits the same file mise set writes: the lowest-precedence TOML file in the nearest config directory, or the global config when run in your home directory. Use --global or --file to pick another file.
Arguments
[ENV_KEY]…— Environment variables to remove, such as NODE_ENV
Flags
-f --file <FILE>— The TOML file to edit instead of the default targetCan be a file or a directory. For a directory, mise uses the config file in it, or one named by MISE_DEFAULT_CONFIG_FILENAME (default
mise.toml): https://mise.jdx.dev/configuration/settings.html#default_config_filename To move the global config file, set MISE_GLOBAL_CONFIG_FILE: https://mise.jdx.dev/configuration/settings.html#global_config_fileAliases:
--path-g --global— Use the global config file-h --help— Print help
Examples
Remove NODE_ENV from the project config
mise unset NODE_ENVRemove NODE_ENV from the global config
mise unset -g NODE_ENV