Installing the Firebase CLI
To deploy to Firebase Hosting, you need to install the Firebase CLI on your computer. Node.js needs to be installed first.
Code Example
javascript
npm install -g firebase-tools
firebase login
firebase init hostingWhat do these commands do?
npm install -g firebase-tools— installs the Firebase CLI globallyfirebase login— logs in with your Google/Firebase accountfirebase init hosting— starts the hosting config inside your project
Common mistake
Pick the wrong build output folder and you'll deploy a blank page. For a Vite project, it's usually dist; for a plain HTML site, it's usually public.