firebase-basics

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

1|Updated Aug 31, 2026
One-click install
npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill firebase-basics-nguyenhungtran18
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-basics
Source: https://github.com/nguyenhungtran18/skill-and-tool-tracker/tree/main/skills/firebase_basics
Command: npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill firebase-basics-nguyenhungtran18

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Setting up Firebase for an app involves many error-prone steps: installing the CLI, 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 AI agents perform them correctly and consistently. ## Core Features & Use Cases - Environment Verification: Checks Node.js version, Firebase CLI availability via npx, and login status before any Firebase work begins. - Project Management: Guides agents to ask the user whether to use an existing Firebase project or create a new one, then sets the active project with the CLI. - Platform SDK Setup: Provides step-by-step references for Web, Android, iOS, and Flutter, including automated retrieval of config files via apps:sdkconfig instead of manual console downloads. - Use Case: A developer asks their AI agent to add Firebase to a new iOS app. The agent verifies the CLI, authenticates, creates the project, registers the bundle ID, fetches GoogleService-Info.plist, and configures FirebaseApp initialization safely. ## Quick Start Ask the agent to set up Firebase for your app and it will verify the CLI, authenticate, and configure your 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 to configure services like Firestore, Functions, or Hosting.

How to 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 the IOS platform flag to produce GoogleService-Info.plist.

Why does Firebase login fail in a remote shell environment?▼

The default login command requires opening a browser, which fails on remote or headless machines. Use npx -y firebase-tools@latest login --no-localhost instead, which provides a URL to authenticate manually and paste back the authorization code.

Does Firebase setup work with Flutter apps?▼

Yes, Flutter integrates through the FlutterFire CLI. Install it with dart pub global activate flutterfire_cli, then run flutterfire configure to register apps and generate firebase_options.dart, followed by initializing Firebase in main.dart with firebase_core.

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

The crash happens when a @State or @StateObject property initializer touches Firebase before FirebaseApp.configure() runs. Call configure() first in the App struct's init(), then initialize state objects afterward or defer setup to onAppear.

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

Node.js version 20 or later is required. The recommended installation path is a version manager like nvm on macOS/Linux or nvm-windows on Windows, which avoids permission issues with global packages.