Back to Writing
NOTESfirebasehostingpowershellweb-deployment
Firebase Hosting — Setup and PowerShell Script Fix
August 28, 2021•Updated Feb 17, 2026
To use Firebase Hosting for a locally developed website, follow these steps:
- First, install Firebase CLI
- Run the firebase login command to log in to the Firebase console
- Create a firebase.json file in your project directory
- Configure your project in firebase.json
- 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