Skip to content
Firebase App Hosting Basics

Firebase App Hosting Basics Skill

Firebase's official skill for deploying full-stack Next.js and Angular apps with SSR on Firebase App Hosting: apphosting.yaml, backends, secrets, GitHub rollouts and the Blaze plan.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from firebase/agent-skills.

$ npx skills add firebase/agent-skills --skill firebase-app-hosting-basics

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/firebase-app-hosting-basics/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/firebase/agent-skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/firebase-app-hosting-basics ~/.claude/skills/firebase-app-hosting-basics

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/firebase-app-hosting-basics/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Decides between Firebase Hosting and App Hosting for a project
  • Deploys Next.js and Angular apps with SSR or ISR
  • firebase.json apphosting block and apphosting.yaml configuration
  • Backend creation with region-quota handling
  • Secrets via apphosting:secrets:set and secret: references
  • GitHub-connected rollouts and local emulation

firebase-app-hosting-basics comes from firebase/agent-skills, Google's official skills for Firebase. It teaches an agent to deploy and manage full-stack web apps on Firebase App Hosting, the product for frameworks that need server-side rendering, as opposed to classic Firebase Hosting for static sites.

Choosing between them. The skill starts with a decision rule: static sites and SPAs without SSR go to Firebase Hosting; Next.js, Angular and other supported frameworks that need SSR or ISR, or a zero-config git-push deploy, go to App Hosting. It also states up front that App Hosting requires the Blaze pay-as-you-go plan and links the upgrade page.

Deploy from source. Add an apphosting block to firebase.json (backend id, root dir, ignore list), write apphosting.yaml, create the backend with apphosting:backends:create (switching --primary-region when a region hits its 10-backend quota), set secrets from .env files with apphosting:secrets:set and grant the backend access, referencing them via secret: and never value:, then firebase deploy. All commands run through npx -y firebase-tools@latest.

GitHub CI/CD. For backends connected to a repository, rollouts are triggered with apphosting:rollouts:create --git-branch, which the skill warns not to mix with local-source deploys. A reference file covers local testing with the Emulator Suite.

It explicitly does not cover Auth, Firestore, Crashlytics or static hosting. Apache-2.0, authored by Google.

Try it

Once installed, ask your agent something like:

Deploy this Next.js app to Firebase App Hosting in us-east4, moving the API keys in .env.local into App Hosting secrets.

SKILL.md

The instructions your agent loads, as published by Firebase.

SKILL.md
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.
   {
     "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):

   npx -y firebase-tools@latest apphosting:backends:create --backend my-app-id --primary-region us-central1 --root-dir /
  1. For sensitive keys/secrets (e.g., from .env*), set and grant access after

creating the backend and reference via secret: (never value:):

   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
"git push" deployments. For GitHub-connected backends, trigger rollouts with
npx -y firebase-tools@latest apphosting:rollouts:create <backend-id> --git-branch <branch>
(do not use rollouts:create when deploying from local source with deploy).

For other backend or secret flags (backends:get, backends:delete, etc.), run
npx -y firebase-tools@latest <command> --help.

Emulation

See [Emulation](references/emulation.md) for more information on how to test
your app locally using the Firebase Local Emulator Suite.

Install
New

Prisma's official skill for deploying and operating TypeScript apps on Prisma Compute with the Prisma 8 CLI: Composer apps, preview stages, deploy on push, logs, rollbacks and domains.

Vercel's official deployment skill — inspects project state, picks the right deploy path, and defaults to preview deployments with a claimable URL when no account is linked.

Firebase's official skill for calling Gemini from Android, iOS, web and Flutter apps with Firebase AI Logic: provisioning, SDK setup, chat, streaming, TTS, structured output and App Check.

Browse all skills →