Back to Writing
NOTESfirebasehostingpowershellweb-deployment

Firebase Hosting — Setup and PowerShell Script Fix

August 28, 2021Updated Feb 17, 2026

To use Firebase Hosting for a locally developed website, follow these steps:

  1. First, install Firebase CLI
  2. Run the firebase login command to log in to the Firebase console
  3. Create a firebase.json file in your project directory
  4. Configure your project in firebase.json
  5. Run the firebase deploy command

Sample firebase.json:

{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"/.*",
"
/node_modules/**"
]
}
}

The firebase-tools PowerShell script loading issue may occur due to the execution policy. Try setting it to Unrestricted:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser