mise settings
- 用法:
mise settings [FLAGS] [SETTING] [VALUE] [SUBCOMMAND] - 作用: 修改状态
- 源代码:
src/cli/settings/mod.rs
管理设置
With no arguments, lists the settings set in config files (same as mise settings ls). With SETTING, prints its effective value. With SETTING=VALUE or SETTING VALUE, writes it to the global config (~/.config/mise/config.toml), or to the nearest project config with --local. Every setting is described at https://mise.jdx.dev/configuration/settings.html
Arguments
[SETTING]— Only show this setting, or the settings under this prefix such aspython[VALUE]— The value to set
Global Flags
-l --local— Use only the nearest project configReads only its explicit settings, or writes to it instead of the global config.
标志
-a --all— 列出所有设置-J --json— 以 JSON 格式输出-T --toml— 以 TOML 格式输出--json-extended— 以包含来源的 JSON 格式输出-h --help— 打印帮助信息
示例
List settings set in config files
mise settingsShow the effective value of one setting
mise settings jobsSet jobs in the global config
mise settings jobs=4Set a setting in the project config
mise settings --local node.mirror_url https://npmmirror.com/mirrors/node/子命令
mise settings add [-l --local] <SETTING> [VALUE]mise settings get [-l --local] <SETTING>mise settings ls [FLAGS] [SETTING]mise settings set [-l --local] <SETTING> [VALUE]mise settings unset [-l --local] <KEY>