First Time Installation
Once you have Node.js and npm installed, you can install the Firebase command line tools via npm:
$ npm install -g firebase-tools # or use sudo (with caution) if required by your system permissions # sudo npm install -g firebase-tools
This installs the globally available
Updating Previously Installed Firebase Tools
If you have a previously installed version of Firebase command line tools, you can easily update them to the latest version:
$ npm update -g firebase-tools # or use sudo (with caution) if required by your system permissions # sudo npm update -g firebase-tools
Once you've chosen the Firebase app you'd like to deploy,
cd into your project directory and run the command:
$ firebase init
Then you'll be prompted to select the Firebase app you'd like to deploy. You only ever need to run this init command once.
firebase init command will create a
file in the root of your project directory. You can learn more about this file in the
Advanced Configuration section of the guide.
To deploy your website simply run:
$ firebase deploy
Your app will be deployed to the domain
From the Hosting tab in your App Dashboard you can see a full history of your deploys. To rollback to a previous deploy, click on the arrow icon on the right.