Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add firebase/agent-skills --skill firebase-app-hosting-basics -a claude-code
Open on GitHub

What 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 apphosting block in firebase.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-code

2Manually: put the files in place

~/.claude/skills/firebase-app-hosting-basics/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/firebase-app-hosting-basics/

From the same set8

The whole set →
firebase-hosting-basics Google LLC Deploys static sites and SPAs to Firebase Hosting CDN with SSL, preview channels, and custom domains. Claude Code CX Codex Cursor +1 169,800installs firebase-data-connect Google LLC Builds and configures Firebase SQL Connect backends on PostgreSQL with GraphQL schemas and generated SDKs. Useful when adding relational data to Firebase projects. Claude Code CX Codex Cursor +1 168,300installs firebase-security-rules-auditor Google LLC Audits Firebase rules for data leaks, privilege escalation, and validation gaps. Use it when reviewing Firestore or Cloud Storage access. Claude Code CX Codex Cursor +1 138,200installs firebase-ai-logic-basics Google LLC Integrates Firebase AI Logic into Android, iOS, Web, and Flutter client apps. Helps configure direct Gemini API calls, streaming, and multimodal inputs. Claude Code CX Codex Cursor +1 135,300installs firebase-crashlytics Google LLC A skill for Firebase Crashlytics in Claude Code, Cursor, and other AI coding platforms. Collects crash reports from Android and iOS apps, lets you read data through the Firebase CLI MCP server. Claude Code CX Codex Cursor +1 131,200installs xcode-project-setup Google LLC This skill adds Swift Packages and links files in Xcode projects. Use it when an iOS app needs dependencies such as Firebase or Alamofire. Claude Code CX Codex Cursor +1 130,300installs firebase-remote-config-basics Google LLC Manages Firebase Remote Config templates, loading strategies, and feature flags for Android and iOS. Helps tweak app behavior without pushing a release to app stores. Claude Code CX Codex Cursor +1 120,800installs

Similar

gke-compute-classes official google Get help configuring and troubleshooting GKE ComputeClasses, from Spot VMs with on-demand fallback to workloads targeting specific GPUs or machine families. Claude Code Gemini CLI CX Codex 6,508installs google-agents-cli-onboarding official google This skill guides agents-cli work across agent creation, testing, deployment, and publishing. Use it when building with ADK. Claude Code Gemini CLI CX Codex 6,434installs data-manager-api-audience-ingestion official google This skill guides developers through adding members to Google audiences, removing them, or clearing an audience with the Data Manager API. Use it for Customer Match and mobile device ID audiences. Claude Code Gemini CLI CX Codex 6,041installs nextjs-on-cloudflare cloudflare Skill for deploying Next.js apps to Cloudflare Workers via vinext. Use for new projects, migrating existing apps, or choosing between vinext and OpenNext. Claude Code CX Codex Cursor +1 42,000installs workers-best-practices cloudflare Guides coding agents on production Cloudflare Workers standards, Wrangler typing, observability setup, and runtime anti-pattern checks. Claude Code CX Codex Cursor +1 124,900installs cloudflare-email-service cloudflare A skill for Cloudflare Email Sending and Email Routing: it walks the agent through sending and receiving mail in Workers. Claude Code CX Codex Cursor +1 101,400installs firebase-basics official google This skill sets up the Firebase CLI, handles sign-in, creates or switches projects, and downloads Android or iOS app configuration files. Claude Code Gemini CLI CX Codex 14,100installs cloudflare-one cloudflare Walks your agent through designing, configuring and troubleshooting Cloudflare One Zero Trust and SASE deployments. Useful when you need Access, Gateway or tunnel work done without digging through docs yourself. Claude Code CX Codex Cursor +1 92,200installs

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

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor