[英]How to Switch between Configurations in Google Cloud Platform CLI - Cloud Shell
I have multiple configurations
created via the gcloud init
command.我通过
gcloud init
命令创建了多个configurations
。 How can I switch between configurations
in the Google Cloud Shell (CLI)?如何在 Google Cloud Shell (CLI) 中切换
configurations
?
You should be able to:你应该能够:
gcloud config configurations list
; gcloud config configurations list
;gcloud config configurations activate...
See: https://cloud.google.com/sdk/gcloud/reference/config/configurations请参阅: https://cloud.google.com/sdk/gcloud/reference/config/configurations
NOTE Instead of changing the current config globally, you may also explicitly specify the configuration per command,eg:
注意除了全局更改当前配置之外,您还可以显式指定每个命令的配置,例如:
gcloud [some-command] --configuration=[your-config]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.