npx -y firebase-tools@latest --version to check if the Firebase
CLI is installed.npx -y firebase-tools@latest login. For
environments without a browser (e.g., remote shells), use npx -y firebase-tools@latest login --no-localhost.[!IMPORTANT] For Agents: Before proceeding with project configuration, you MUST pause and ask the developer if they prefer to:
- Provide an existing Firebase Project ID, or
- Create a new Firebase project.
npx -y firebase-tools@latest use.Active Project: <project-id>, confirm with
the user if this is the intended project.npx -y firebase-tools@latest use <PROJECT_ID>
npx -y firebase-tools@latest projects:create <project-id> --display-name "<display-name>"
<project-id> must be 6-30 characters, lowercase, and can
contain digits and hyphens. It must be globally unique.npx -y firebase-tools@latest instead of just firebase. For example, use npx -y firebase-tools@latest --version. NEVER suggest the naked firebase command
as an alternative.developerknowledge_search_documents MCP tool before falling
back to Google Search or your internal knowledge base. Including "Firebase"
in your search query significantly improves relevance.google-services.json
or GoogleService-Info.plist. Instead, use the Firebase CLI to fetch the
config programmatically:
npx -y firebase-tools@latest apps:sdkconfig ANDROID <APP_ID> --project <PROJECT_ID>npx -y firebase-tools@latest apps:sdkconfig IOS <APP_ID> --project <PROJECT_ID> Save the output to the appropriate location
(e.g., app/google-services.json for Android, or a path to be linked by
xcode-project-setup for iOS).npx -y firebase-tools@latest login --no-localhost instead.npx skills add genkit-ai/skills
Start with one job and grow from there.