我正在使用 Google Cloud SDK CLI(gcloud命令),命令很棒!虽然我想以 JSON 格式输出 Google Compute Engine 的实例列表(通过运行gcloud compute instances list --format json)并使用jq JSON 处理器对其进行过滤,但该命令有时会输出以下消息:
Updates are available for some Cloud SDK components. To install
them, please run:
$ gcloud components update
Run Code Online (Sandbox Code Playgroud)
我知道消息很重要,但我想将 JSON 输出视为格式正确。有没有办法抑制消息?-q和--verbosity none选项都不起作用。