【问题标题】:How to Switch between Configurations in Google Cloud Platform CLI - Cloud Shell如何在 Google Cloud Platform CLI 中切换配置 - Cloud Shell
【发布时间】:2020-09-02 14:52:33
【问题描述】:

我通过gcloud init 命令创建了多个configurations。如何在 Google Cloud Shell (CLI) 中的 configurations 之间切换?

【问题讨论】:

标签: google-cloud-platform gcloud google-cloud-shell


【解决方案1】:

你应该能够:

  • gcloud config configurations list;
  • gcloud config configurations activate ...

见:https://cloud.google.com/sdk/gcloud/reference/config/configurations

注意 除了全局更改当前配置,您还可以显式指定每个命令的配置,例如:

gcloud [some-command] --configuration=[your-config]

【讨论】:

    猜你喜欢
    • 2018-11-21
    • 1970-01-01
    • 1970-01-01
    • 2016-04-08
    • 1970-01-01
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 2020-04-08
    相关资源
    最近更新 更多