add new chinese translations
This commit is contained in:
33
pages.zh/common/gcloud-config-set.md
Normal file
33
pages.zh/common/gcloud-config-set.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# gcloud 配置设置
|
||||
|
||||
> 在 Google Cloud CLI 配置中设置属性。
|
||||
> 属性控制 Google Cloud CLI 行为的各个方面。
|
||||
> 更多信息请访问:<https://cloud.google.com/sdk/gcloud/reference/config/set>。
|
||||
|
||||
- 在核心部分设置项目属性:
|
||||
|
||||
`gcloud config set project {{project_id}}`
|
||||
|
||||
- 设置未来操作的计算区域:
|
||||
|
||||
`gcloud config set compute/zone {{zone_name}}`
|
||||
|
||||
- 禁用提示以使 gcloud 适合脚本化:
|
||||
|
||||
`gcloud config set disable_prompts true`
|
||||
|
||||
- 查看当前使用的属性列表:
|
||||
|
||||
`gcloud config list`
|
||||
|
||||
- 取消设置之前设置的属性:
|
||||
|
||||
`gcloud config unset {{property_name}}`
|
||||
|
||||
- 创建新的配置文件:
|
||||
|
||||
`gcloud config configurations create {{configuration_name}}`
|
||||
|
||||
- 在不同的配置文件之间切换:
|
||||
|
||||
`gcloud config configurations activate {{configuration_name}}`
|
Reference in New Issue
Block a user