Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add firebase cloud function in existing project

I have a project which contains Firebase and already runs. Today I need to add cloud functions inside. But I don't know how to add it in a running project. I didn't find proper documents for my case.

What would happened if I tried init firebase and checked cloud functions only in my current project. Will it delete my previous setup (i have installed Firestore, storage,etc)? fireabse

like image 828
Nanda Z Avatar asked Jul 31 '26 03:07

Nanda Z


1 Answers

As explained in the Firebase CLI doc, "you can always run firebase init later to set up more Firebase products" after the initial initialization.

So, running it again will not delete your previous setup.


Take care to only select the additional services: as noted in the doc, "If you run firebase init again for any Firebase service, the command will overwrite the corresponding section of the firebase.json file back to the default configuration for that service."

like image 122
Renaud Tarnec Avatar answered Aug 02 '26 20:08

Renaud Tarnec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!