CLI Cortex Framework 配置
uv run cortex-config 会配置本地 Google Cloud Cortex Framework 用户偏好设置,例如 ~/.cortex/cortex-framework-consent.properties 中的全局遥测同意。
Synopsis
uv run cortex-config [-h] {telemetry} ...
子命令
使用以下子命令管理特定配置和偏好设置:
telemetry
全局管理遥测数据收集同意情况。
uv run cortex-config telemetry {enable|disable|status}
enable:选择启用并全局启用遥测收集。这会将本地意见征求属性文件更新为enable_telemetry=true。disable:停用并全局停用遥测数据收集。这会将本地用户意见征求属性文件更新为enable_telemetry=false。status:显示当前的遥测同意情况。在~/.cortex/cortex-framework-consent.properties存在之前,默认报告ENABLED。
选项
下表介绍了 uv run cortex-config 的命令行选项:
| 标志 | 说明 | 默认 |
|---|---|---|
-h, --help |
显示帮助消息并退出。 | 无 |
示例
在工作站上检查或停用全局遥测意见征求:
uv run cortex-config telemetry status
uv run cortex-config telemetry disable