I recently started using Google Cloud Storage. Initially I created a dummy project while installing the Cloud SDK. Now I am working on another project. The gsutil is still pointing to my previous project. How do I make it point to my new project??
P.S. I know there is an option of using -p argument, but this does not work on all commands.
To change the default project that gcloud (and gsutil) use in a gcloud installation, you should do this:
gcloud config set project desired-project-id-here
You can view your current settings with gcloud config list
.
You can view all configurations available with gcloud config configurations list
.
You can then switch to an alternate configuration with gcloud config configurations activate [NAME]