firebase-app-hosting-basics — Claude Code skill: install
Deploy and manage SSR web apps built with Next.js or Angular on Firebase App Hosting. Use it for configuration, secrets, and deployment workflows.
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a claude-codeWhat firebase-app-hosting-basics does
This skill guides the deployment and management of full-stack Next.js and Angular applications with Firebase App Hosting. It covers the apphosting block in firebase.json, creating apphosting.yaml, setting up a backend, and deploying with npx -y firebase-tools@latest deploy.
It includes commands for storing secrets with apphosting:secrets:set and granting backend access with apphosting:secrets:grantaccess. The material also covers GitHub-based automated deployments and local testing with the Firebase Local Emulator Suite. Static sites and SPAs without SSR belong on Firebase Hosting instead.
Your Firebase project must use the Blaze plan before App Hosting can be used, so check billing first. Backend creation can include --primary-region; the example uses us-central1 and the root directory /.
What it helps with
- deploy an SSR app built with Next.js or Angular
- configure the
apphostingblock infirebase.json - create a Firebase App Hosting backend
- store secrets and grant backend access
- connect deployments to GitHub
Example prompts for the agent
- Set up Firebase App Hosting for this Next.js application and create `apphosting.yaml`.
- Review `firebase.json`, create backend `my-app-id` in `us-central1`, and prepare the deployment.
- Store `<secret-name>` with `apphosting:secrets:set`, grant the backend access, and tell me the next step.
How to install firebase-app-hosting-basics
1Skills CLI (Vercel)
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a claude-code2Manually: put the files in place
~/.claude/skills/firebase-app-hosting-basics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/firebase-app-hosting-basics/
1Skills CLI (Vercel)
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a codex2Manually: put the files in place
.agents/skills/firebase-app-hosting-basics/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a cursor2Manually: put the files in place
.cursor/skills/firebase-app-hosting-basics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install firebase/agent-skills firebase-app-hosting-basics2Manually: put the files in place
.github/skills/firebase-app-hosting-basics/SKILL.md1Skills CLI (Vercel)
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a gemini-cli2Platform CLI
gemini skills install https://github.com/firebase/agent-skills --path skills/firebase-app-hosting-basicsManually: put the files in place
.devin/skills/firebase-app-hosting-basics/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set8
The whole set →Similar
Questions about firebase-app-hosting-basics
How do I install firebase-app-hosting-basics in Codex?
Run npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a codex. Then check .agents/skills/firebase-app-hosting-basics/SKILL.md.
What does firebase-app-hosting-basics do?
It helps deploy and manage SSR applications built with Next.js or Angular on Firebase App Hosting. It also covers configuration, secrets, GitHub deployments, and local emulation.
Which Firebase plan is required for App Hosting?
The Firebase project must use the Blaze plan before App Hosting can be used. Check the billing plan before creating a backend or deploying.
Source text
SKILL.md · Apache-2.0
---
name: firebase-app-hosting-basics
description: >-
Deploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js/Angular apps, configuring apphosting.yaml or firebase.json apphosting blocks, managing secrets, setting up GitHub CI/CD, or configuring Blaze billing requirements. Don't use for classic static web hosting, Auth, Firestore, Crashlytics, or Xcode.
metadata:
author: Google LLC
category: Serverless
---
# App Hosting Basics
## Description
This skill enables the agent to deploy and manage modern, full-stack web
applications (Next.js, Angular, etc.) using Firebase App Hosting.
**Important**: In order to use App Hosting, your Firebase project must be on the
Blaze pricing plan. Direct the user to
https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered
to upgrade their plan.
## Hosting vs App Hosting
**Choose Firebase Hosting if:**
- You are deploying a static site (HTML/CSS/JS).
- You are deploying a simple SPA (React, Vue, etc. without SSR).
- You want full control over the build and deploy process via CLI.
**Choose Firebase App Hosting if:**
- You are using a supported full-stack framework like Next.js or Angular.
- You need Server-Side Rendering (SSR) or ISR.
- You want an automated "git push to deploy" workflow with zero configuration.
## Deploying to App Hosting
### Deploy from Source
This is the recommended flow for most users.
1. Configure `firebase.json` with an `apphosting` block.
```json
{
"apphosting": {
"backendId": "my-app-id",
"rootDir": "/",
"ignore": [
"node_modules",
".git",
".next",
".vercel",
"firebase-debug.log",
"firebase-debug.*.log",
"functions"
]
}
}
```
1. Create or edit `apphosting.yaml`- see
[Configuration](references/configuration.md) for more information on how to
do so.
1. Create the backend if it does not exist (`apphosting:backends:list`; switch
`--primary-region`, e.g. `us-east4`, if a region hits its 10-backend quota):
```bash
npx -y firebase-tools@latest apphosting:backends:create --backend my-app-id --primary-region us-central1 --root-dir /
```
1. If the app needs safe access to sensitive keys, set and grant access after
creating the backend:
```bash
printf '%s' '<value>' | npx -y firebase-tools@latest apphosting:secrets:set <secret-name> --data-file - --force
npx -y firebase-tools@latest apphosting:secrets:grantaccess <secret-name> --backend my-app-id
```
1. Run `npx -y firebase-tools@latest deploy` when you are ready to deploy.
### Automated deployment via GitHub (CI/CD)
Alternatively, set up a backend connected to a GitHub repository for automated
deployments "git push" deployments. This is only recommended for more advanced
users, and is not required to use App Hosting. See
[CLI Commands](references/cli_commands.md) for more information on how to set
this up using CLI commands.
## Emulation
See [Emulation](references/emulation.md) for more information on how to test
your app locally using the Firebase Local Emulator Suite.
© Google LLC · Apache-2.0 · firebase/agent-skills