DEV Community

Matt Ruiz
Matt Ruiz

Posted on

1

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)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay