简体   繁体   中英

Is there a way to create a firebase project for my GCP project, using the CLI?

I have created a GCP project using the following command...

gcloud projects create project-id --name=project-name

When I navigate to firebase console, there is no associated project. Is there a way I can create an associate firebase project, without having to go into the web console?

The Firebase CLI has a command projects:addfirebase , which add the Firebase bit to an existing Google Cloud project.

See https://firebase.google.com/docs/cli#management-commands

You can use the Firebase CLI to add Firebase to a GCP project.

firebase init

Select "Add Firebase to existing GCP project":

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM