Firebase Hosting gives you a fast, secure, and reliable way to host your
serve dynamic content and host microservices. Our
production-grade hosting is backed by a global content delivery network (CDN).
Hosting serves your content over SSL, by default, and can be used with your
own custom domain or on a subdomain of
To get started with Firebase Hosting, go to your Firebase project's Hosting page, then click Get Started.
Next, install the Firebase CLI (a command line tool) so that you can initialize and deploy your site.
Access your Firebase projects
To connect your local machine to Firebase and obtain access to your Firebase projects, run the following command:
Initialize your site
From the root of your project directory, run the following command:
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 to your site
To deploy to your site, run the following command from your project's root directory:
This command deploys a release to your Firebase project's default Hosting
and any custom domains that you've connected to
your Hosting site.
Any requested static content is automatically cached on the CDN. If you redeploy your site's content, Firebase Hosting automatically clears all your cached static content across the CDN until the next request. Note that you can configure the caching of dynamic content.
Manage and rollback deploys
To rollback to a previous deploy, hover over its entry in the list, click the overflow menu icon, then click Rollback.