Back to Mise

`mise unset`

docs/cli/unset.md

2026.9.21.5 KB
Original Source
<!-- @generated by usage-cli from usage spec -->

mise unset

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

Remove environment variable(s) from the config file

By default, this command selects the nearest configuration directory and modifies its lowest-precedence TOML file, creating mise.toml here if none exists.

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

    Can be a file path or directory. If a directory is provided, will create/use mise.toml in that directory.

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

    Aliases: --path

  • -g --global — Use the global config file

  • -h --help — Print help

Examples

Remove NODE_ENV from the selected project config

mise unset NODE_ENV

Remove NODE_ENV from the global config

mise unset NODE_ENV -g
<!-- generated reference navigation -->