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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay