firebase-basics

Configures Firebase CLI authentication, projects, and app SDK setup across platforms.

Updated Aug 17, 2026
One-click install
npx skills add https://github.com/DingJun1028/esggo-kv --skill firebase-basics-dingjun1028
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-basics
Source: https://github.com/DingJun1028/esggo-kv/tree/main/.agents/skills/firebase-basics
Command: npx skills add https://github.com/DingJun1028/esggo-kv --skill firebase-basics-dingjun1028

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes references (resource) components.

What problem does it solve? Setting up Firebase correctly involves many error-prone steps: installing the right CLI version, authenticating, selecting or creating a project, and wiring platform config files like google-services.json or GoogleService-Info.plist. This Skill standardizes those foundational workflows so agents and developers avoid misconfiguration. ## Core Features & Use Cases - CLI Environment Verification: Checks Node.js version, Firebase CLI availability via npx -y firebase-tools@latest, and login status (including --no-localhost for remote shells). - Project Management: Guides creating new Firebase projects or selecting an existing active project with the correct project ID constraints. - Platform SDK Setup: Provides reference guides for Web, Android, iOS, and Flutter, including automated retrieval of google-services.json and GoogleService-Info.plist via apps:sdkconfig instead of manual console downloads. - Agent Environment Setup: Includes per-agent installation and refresh guides (Gemini CLI, Claude Code, Cursor, Antigravity, Android Studio, GitHub Copilot, and others) for Firebase skills and the Firebase MCP server. - Use Case: An agent asked to add Firebase to a new iOS app follows the iOS reference to create the project, register the bundle ID, fetch the plist via CLI, and configure FirebaseApp before any state objects initialize, avoiding the common crash. ## Quick Start Ask the agent to verify the Firebase CLI version and log in, then set up Firebase for your web, Android, iOS, or Flutter app project.

Frequently Asked Questions about firebase-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Firebase in a new project using the CLI?▼

Run npx -y firebase-tools@latest login to authenticate, then create or select a project with projects:create or use <PROJECT_ID>. Finally run npx -y firebase-tools@latest init in your project root to configure services like Firestore, Functions, or Hosting.

How do I get google-services.json without the Firebase Console?▼

Use the Firebase CLI command npx -y firebase-tools@latest apps:sdkconfig ANDROID <APP_ID> --project <PROJECT_ID> and save the output as app/google-services.json. The same pattern works for iOS with apps:sdkconfig IOS to produce GoogleService-Info.plist.

Why does my SwiftUI app crash with Default FirebaseApp is not configured?▼

The crash happens when a @State or @StateObject property initializer touches Firebase before FirebaseApp.configure() runs. Call FirebaseApp.configure() first in App.init(), then initialize state objects afterward or pass them into subviews.

How do I log in to Firebase on a remote server without a browser?▼

Run npx -y firebase-tools@latest login --no-localhost instead of the standard login command. It provides a URL to open manually and a code to paste back, completing authentication without a local browser redirect.

What Node.js version is required for the Firebase CLI?▼

Node.js version 20 or later is required. The recommended approach is installing via a version manager like nvm on macOS/Linux or nvm-windows on Windows, then verifying with node --version before running Firebase commands.