Skip to content

mise unset

  • Usage: mise unset [-f --file <FILE>] [-g --global] [ENV_KEY]…
  • Source code: src/cli/unset.rs

Remove environment variable(s) from the config file.

By default, this command modifies mise.toml in the current directory.

Arguments

[ENV_KEY]…

Environment variable(s) to remove e.g.: NODE_ENV

Flags

-f --file <FILE>

Specify a file to use instead of mise.toml

Defaults to MISE_DEFAULT_CONFIG_FILENAME environment variable, or mise.toml. Use MISE_GLOBAL_CONFIG_FILE to choose a different global config path.

-g --global

Use the global config file

Examples:

# Remove NODE_ENV from the current directory's config
$ mise unset NODE_ENV

# Remove NODE_ENV from the global config
$ mise unset NODE_ENV -g
MIT LicenseCopyright © 2026en.dev