gcloud使用心得
gcloud安装文档:https://cloud.google.com/sdk/docs/install?hl=zh-cn
配置文件路径:~/.config/gcloud/
显示所有GCP账户(活跃的账户会显示*符号)
gcloud auth list
显示当前账户配置
gcloud config list
新增账户配置
gcloud config configurations create meshcloud
查看配置账户
gcloud config configurations list
设置新账户
gcloud config set account 766083824@qq.com
设置账户后,需要执行如下命令进行验证身份
gcloud auth login
设置一个project,如wanggaoli
gcloud config set project wanggaoli
切换GCP账户,如default、meshcloud
gcloud config configurations activate default
gcloud config configurations activate meshcloud
删除某个账户(需要切到其他账户上进行操作)
gcloud config configurations delete meshcloud
配置:https://cloud.google.com/sdk/docs/configurations?hl=zh-cn
管理:https://cloud.google.com/sdk/docs/properties?hl=zh-cn