Cloud Functions for Firebase - Retrieving already deployed code?

前端 未结 1 865
太阳男子
太阳男子 2020-12-22 02:38

I deployed a code to Firebase functions. Now I need the same code for another project. But I lost the code in my local machine.

Is there anyway to retrieve the code

相关标签:
1条回答
  • 2020-12-22 02:50

    Yes you can find your Cloud Functions code on the Google Cloud Platform console (not the Firebase console).

    1. Go to https://console.cloud.google.com/functions
    2. (If necessary, switch to the desired project)
    3. Open the "Function details" screen by clicking on the Function name
    4. Click on the "Source" tab (just below the "version" drop-down list)

    You can either copy/paste the code from the text area or use the "Download zip" button at the bottom of the screen.

    0 讨论(0)
提交回复
热议问题