Darren Leung
Darren Leung

Reputation: 101

FIREBASE: How do you find your google project number in google firebase?

I can't find the google project number in "General" or "Cloud Messaging". Not much else to say. Ideas?

Upvotes: 10

Views: 15425

Answers (5)

Jason R Stevens CFA
Jason R Stevens CFA

Reputation: 3091

This worked to set my PROJECT_NUMBER variable for me:

PROJECT_NUMBER=$(gcloud projects describe ${PROJECT_ID} --format 'value(projectNumber)')

PROJECT_ID is your text string PROJECT_ID you use elsewhere in Google commands. You should be able to see this easily in the console UI.

For those unfamiliar, the $( . . . ) above is a subshell which calls the gcloud sdk to populate the PROJECT_NUM variable.

Upvotes: 0

Vijay
Vijay

Reputation: 109

Additionally, you can get it using gcloud CLI using below command:

gcloud projects list --format="table(projectNumber,projectId)" --filter="my-firebase-project"

Replace my-firebase-project with your desired project.

Upvotes: 2

Saurabh Agarwal
Saurabh Agarwal

Reputation: 294

Go to the Google Developer Console : https://console.developers.google.com

Select Your Project.

Go to Settings and Utilities (3 point dropdown icon left of your profile pic on top right).

Go to Project Settings.

You will get your project number there.

Upvotes: 15

Abhishek Pandey
Abhishek Pandey

Reputation: 97

In Google Developer Console:

Select the project > Settings & Utilities (Near user icon on top right) > Project Settings

You will find project number there.

Upvotes: 1

Hank Wilson
Hank Wilson

Reputation: 519

Go to https://console.cloud.google.com Select the project you want Click on Dashboard It'll show up there

Upvotes: 1

Related Questions