Get code from firebase console that I deployed earlier

I created firebase functions in nodejs and deployed the code to firebase. The function was to send an email when creating a new user. I have lost the code now. Can we extract this code from firebase?

+7
firebase google-cloud-functions firebase-console
source share
3 answers

Note : the process below may or may not work for your case. Do not rely on it as a replacement to maintain your code in the correct version control system.

You can get the code for your cloud features from the Cloud Console.

  • Go to this URL
  • Select the project where the function is located
  • Select a function from the list.
  • You will be taken to this page : Google Cloud Features Original Tab

  • Select Source at the top

  • Click the "Source Location" link

This will launch a zip file with the last source of your function.

Please note that these files may be deleted periodically. In this case, the above process will not work to restore the source code.

+11
source share

When you click to select your project, make sure that the correct organization is selected.

Choose organization

+1
source share

It seems that the above answers are outdated and no longer work. This is the latest and most reliable way to complete the task assigned to you in this short time.

The fixed folder of your firebase functions will be loaded

Hooray!

0
source share

All Articles