use*_*631 14 google-cloud-storage
我最近开始使用谷歌云存储.最初我在安装云SDK时创建了一个虚拟项目.现在我正在开发另一个项目.gsutil仍然指向我以前的项目.我如何指出我的新项目?
PS我知道有一个使用-p参数的选项,但这不适用于所有命令.
Tra*_*rla 41
要更改gcloud(和gsutil)在gcloud安装中使用的默认项目,您应该这样做:
gcloud config set project desired-project-id-here
您可以使用以下方式查看当前设置gcloud config list.
您可以查看所有可用的配置gcloud config configurations list.
然后,您可以切换到备用配置 gcloud config configurations activate [NAME]