I had created firebase functions in nodejs and deployed the code on firebase. The function was to send an email when the new user is created. I have lost the code now. Can we pull that code from firebase ?
You can see logs in real time using the Firebase console. Choose your project, click the Functions product on the left, then click the Logs tab.
When you first initialize your Firebase Hosting project with firebase init you specify what project you want to deploy your app to. This is your default project. The use command allows you to add another project. Select the project you want to use for a different environment, and then give it an alias.
Realtime Database commands. Remote Config commands. The Firebase CLI (GitHub) provides a variety of tools for managing, viewing, and deploying to Firebase projects. Before using the Firebase CLI, set up a Firebase project.
Note: the process below may work or not for your case. Don't rely on it as a replacement for keeping your code in a proper version control system.
You can retrieve the code for your Cloud Functions from the Cloud Console.
You will get to this page:
Select the Source at the top
A zip file with the latest source of your function will start to download.
Note that these files may periodically get deleted. In that case, the above process will not work to recover your source code.
When you click to select your project, make sure you have the right organization selected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With