Hosting

  1. Install node.js.

2. Download firebase

1. npm install -g firebase-tools

3. Authenticate

  1. firebase login.

4. Init

  1. firebase init.

5. Directory structure

1. Project directory

1. Project directory 1. <public>
  1. Correct file (index.html, 404.html).
  1. Correct firebase.json.

8. Deploy

  1. firebase deploy.
2. firebase deploy --only hosting

Alias

For environments like ‘staging’.

firebase use --add

Prompts to select project.

Commands

Login.

Logout.

https://firebase.google.com/docs/cli

Updated: 2026 Aug 19