DEV Community

Matt Ruiz
Matt Ruiz

Posted on

Changing your gcloud CLI project

Hola hola,

I was running into issues because I did not have gcloud or gsutil installed on our macs. Therefore, I could not run any related commands in our Firebase Cloud Functions project.

After installing them I needed to switch the project.

First, I needed to retrieve the PROJECT_ID for the project that I wanted to switch to. I did that by running this command:

  • gcloud projects list

Once I got the PROJECT_ID value, I then ran this command:

  • gcloud config set project {PROJECT_ID}

If successful, you should see a message like:

  • Updated property [core/project].

-Matt

Top comments (0)