This is going to be a simple walkthrough of deploying a firebase site via cmd on a build machine of your choice. This post is going to assume that you already have a dev ops solution set up such as Azure Dev Ops or Jenkins.
- Install firebase-tools on your host machine if you did not already.
npm install -g firebase-tools
- Log into firebase
- Get a deployment token. Do note, these tokens bind to the google account you are signed into on and will give access to all firebase projects that the google account can access
- Save that token as an env variable on your build machine
- To deploy all of your firebase assets. FIREBASETOKEN = the variable from step 4
`firebase deploy —token $(FIREBASETOKEN)`
Further reading - Firebase CLI Reference