To get started with Firebase Hosting, go to your project's Firebase Hosting page, then click Get Started.
Next, install the Firebase CLI (a command line tool) so that you can initialize and deploy your site.
Install the Firebase CLI
Once you have Node.js and npm installed, you can install the Firebase CLI via npm:
npm install -g firebase-tools
This installs the globally available
firebase command. To update to the latest version, simply re-run the same command.
Access your Firebase projects
To connect your local machine to your Firebase account and obtain access to your Firebase projects, run the following command:
$ firebase login
Initialize your site
From the root directory of your existing Firebase project, run the following command:
$ firebase init
firebase init command creates
firebase.json configuration file in the
root of your project directory. This file is required to deploy your site using
the CLI. You can
customize your Hosting configuration in the
Deploy your site
To deploy your site, run the following command from your project's root directory:
$ firebase deploy
This command deploys your project to
<YOUR-FIREBASE-APP>.firebaseapp.com. You can also
use a custom domain with Firebase Hosting.