firebase-basics

Configures Firebase CLI authentication, projects, and SDK config files for app development.

2|Updated Mar 7, 2025
One-click install
npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-basics-abdelrhmanuzaki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-basics
Source: https://github.com/AbdelrhmanUZaki/KnowledgeNuggets/tree/main/2-setup/shared/gemini/config/plugins/firebase/skills/firebase_basics
Command: npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-basics-abdelrhmanuzaki

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Setting up Firebase for a new app involves many error-prone steps: verifying the CLI, authenticating, selecting or creating a project, and retrieving platform config files. This Skill standardizes that entire foundational workflow so nothing is missed. ## Core Features & Use Cases - Environment Verification: Checks the Firebase CLI version using npx -y firebase-tools@latest and guides setup of the Firebase MCP server across agent environments like Gemini CLI, Claude Code, Cursor, and Android Studio. - Authentication & Project Management: Handles firebase login (including --no-localhost for remote shells), checks the active project, and creates new projects with valid IDs. - Automated Config Retrieval: Fetches google-services.json for Android and GoogleService-Info.plist for iOS programmatically via apps:sdkconfig instead of manual console downloads. - Use Case: You are starting a new Android app and need Firebase connected. The Skill verifies your CLI, logs you in, sets the active project, and downloads google-services.json into your app/ directory automatically. ## Quick Start Set up Firebase for my project by checking the CLI, logging me in, and downloading the Android 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 CLI for a new project?▼

Run `npx -y firebase-tools@latest --version` to verify the CLI, then `npx -y firebase-tools@latest login` to authenticate, and `npx -y firebase-tools@latest use <PROJECT_ID>` to set the active project. Always prefix commands with npx to use the latest CLI version.

How to download 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 to `app/google-services.json`. For iOS, replace ANDROID with IOS to get GoogleService-Info.plist.

How do I create a new Firebase project from the command line?▼

Run `npx -y firebase-tools@latest projects:create <project-id> --display-name "<display-name>"`. The project ID must be 6-30 characters, lowercase, globally unique, and may contain digits and hyphens.

Does firebase login work in remote shells without a browser?▼

Yes, use `npx -y firebase-tools@latest login --no-localhost` for environments where a browser cannot open, such as remote SSH sessions. The command provides an interactive flow to complete authentication manually.

Why should I use npx firebase-tools instead of the firebase command?▼

Prefixing with `npx -y firebase-tools@latest` guarantees you always run the latest CLI version, avoiding issues from outdated global installs. The Skill explicitly prohibits suggesting the naked `firebase` command.