firebase-basics

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

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-basics-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-basics
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/antigravity/plugins/firebase/skills/firebase_basics
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-basics-ferrarifankid04

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 config files like google-services.json or GoogleService-Info.plist into your app. This Skill standardizes those foundational workflows so agents and developers avoid misconfigured environments. ## Core Features & Use Cases - Environment Verification: Checks Node.js version, Firebase CLI availability via npx -y firebase-tools@latest, and login status before any Firebase work begins. - Project Management: Guides creating new Firebase projects or selecting existing ones, and fetches app config files programmatically with apps:sdkconfig instead of manual console downloads. - Platform SDK Setup: Provides step-by-step references for adding Firebase to Web, Android, iOS, and Flutter apps, including safe SwiftUI initialization patterns. - Use Case: You are starting a new mobile app and need Firebase Auth and Firestore. The Skill walks the agent through CLI login, project creation, app registration, config file retrieval, and SDK initialization without opening the Firebase Console. ## Quick Start Ask the agent to set up Firebase for your project, for example: initialize Firebase in my Android app and fetch the google-services.json config file.

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 firebase-tools projects:create or firebase-tools use. Register your app with apps:create and fetch its config with apps:sdkconfig, saving the output as google-services.json or GoogleService-Info.plist.

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>. Save the output to app/google-services.json for Android, or use the IOS variant for GoogleService-Info.plist.

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. Configure Firebase inside the App struct's init() first, then initialize state objects afterward or defer setup to onAppear.

Does Firebase CLI login work on remote servers without a browser?

Yes, use npx -y firebase-tools@latest login --no-localhost for headless or remote environments. 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 installation method is a version manager like nvm on macOS/Linux or nvm-windows on Windows, which avoids permission issues with global packages.