- Install node.js.
2. Download firebase
1. npm install -g firebase-tools3. Authenticate
- firebase login.
4. Init
- firebase init.
5. Directory structure
1. Project directory
1. Project directory 1. <public>- Correct file (index.html, 404.html).
- Correct firebase.json.
8. Deploy
- firebase deploy.
2. firebase deploy --only hostingAlias
For environments like ‘staging’.
firebase use --addPrompts to select project.
Commands
Login.
Logout.
https://firebase.google.com/docs/cli
Updated:
2026 Aug 19

