mise unset
- 用法:
mise unset [-f --file <FILE>] [-g --global] [ENV_KEY]… - 效果: 修改状态
- 源代码:
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_file别名:
--path-g --global— 使用全局配置文件-h --help— 打印帮助
示例
Remove NODE_ENV from the project config
mise unset NODE_ENV从全局配置中移除 NODE_ENV
mise unset -g NODE_ENV