Required Node.js and npm installed, install the Firebase CLI via NPM
npm install -g firebase-tools
- Run
firebas login
- Go to the Firebase project directory
- Run
firebase init functions
.
- Run this command to deploy the Firebase functions
$ firebase deploy --only functions