Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy individual Cloud Function for Firebase

I'd like to be able to deploy an individual Cloud Function for Firebase so I don't have to deploy my entire project every time.

There isn't an option through the CLI, but if there's a rest API or some other interface that Google or Firebase exposes to make this easier, that would be great.

like image 222
doowb Avatar asked May 22 '17 19:05

doowb


1 Answers

The CLI provides the capability to deploy a single function:

firebase deploy --only functions:myFunction

or list of functions:

firebase deploy --only functions:myFuncA,functions:myFuncB,functions:myFuncC

For more details:

firebase deploy --help
like image 87
Bob Snyder Avatar answered Oct 23 '22 10:10

Bob Snyder