Get code from firebase console which I deployed earlier
Solution 1:
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.
- Go to this URL
- Select the project that the function is in
- Select a function from the list
You will get to this page:
Select the Source at the top
- Click the "Source location" link
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.
Solution 2:
When you click to select your project, make sure you have the right organization selected.
Solution 3:
In the firebase console in the left hand menu select Functions. Hover over the function you want to view and click the three vertical dots. Select Detailed Usage Stats. This will bring you to the Google Cloud console. Select 'Source' to get the source code.