mise config get
- 用法:
mise config get [FLAGS] [KEY] - 效果: 只读
- 源代码:
src/cli/config/get.rs
Print a value from one mise TOML file
默认读取优先级最高的已加载 TOML 文件。使用 --file、--global 或 --system 选择其他文件。此命令读取存储的值,而不是合并或模板展开后的环境;如需获取解析后的环境,请使用 mise env
Arguments
[KEY]— Dotted key path to print, such astools.python; omit to print the whole file
Flags
-f --file <FILE>— Config file to read, or a directory whose config file to readFor a directory, mise reads the TOML config file already there, such as
.mise.toml, ormise.tomlwhen there is none. Defaults to the highest-precedence loaded TOML file.Aliases:
--path-g --global— Read the global config file--system— Read the system config file-h --help— Print help
示例
Print the python request
mise config get tools.python
3.13Print the whole file
mise config get