6

I have deployed some code on firebase cloud function from another machine. I have changed the machine and I want to pull the existing cloud function here. When I do firebase login and then firebase init and select the same project as existing but it still creates empy index.js file

Asadullah Ali
  • 1,056
  • 14
  • 31

1 Answers1

5

Deployment only works one direction - from a computer to the cloud. There is currently no way to get your code back from the cloud onto a computer. Instead, you should be using some sort of source control to manage your code.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441