小编yan*_*ana的帖子

如何在 gcloud 命令中禁用更新通知?

我正在使用 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选项都不起作用。

google-compute-engine google-cloud-platform gcloud

3
推荐指数
1
解决办法
1718
查看次数