跳到主要内容

配置命令:config

bohr config 用于读取和更新本地 CLI 配置。

命令

命令用法说明
getbohr config get <key> [flags]读取某个配置值
initializebohr config initialize [flags]交互式创建本地 CLI 配置
listbohr config list [flags]列出全部配置项
setbohr config set <key> <value> [flags]设置某个配置值

命令组内的子命令请运行 bohr config <组> --help 查看。

示例

bohr config list -o json
bohr config get openapi_host
bohr config set output_format json
bohr config set billing_confirmation false --yes

配置输出可能包含凭证,请勿在共享日志中输出完整配置。关闭计费确认会改变安全设置,因此需要显式确认。