npm install -g firebase-tools
- Run
firebase login
and login with your firebase account - Select your project from the list shown to you
- Run
firebase init functions
which creates a functions directory - Add your functions logic
- Run
firebase deploy
All Done!