npx skills add https://github.com/firebase/skills --skill firebase-basics在继续之前,请完成以下设置步骤,并记住您的进度,以避免在未来的交互中重复这些步骤。
* 运行 `npx -y firebase-tools@latest --version` 以检查 Firebase CLI 是否已安装。
* 使用您现有的工具验证 Firebase MCP 服务器是否已安装。
* 如果其中任何一项检查失败,请使用 `firebase-local-env-setup` 技能来准备环境。
2. 身份验证: 确保您已登录 Firebase,以便命令具有正确的权限。运行 npx -y firebase-tools@latest login。对于没有浏览器的环境(例如远程 shell),请使用 npx -y firebase-tools@latest login --no-localhost。
* 该命令应输出当前用户。
* 如果您未登录,请按照此命令的交互式说明进行身份验证。
3. 活动项目: 大多数 Firebase 任务都需要一个活动项目上下文。通过运行 npx -y firebase-tools@latest use 来检查当前项目。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
* 如果命令输出 `Active Project: <project-id>`,您可以继续执行任务。
* 如果没有,请询问用户是否已有现有的 Firebase 项目 ID。
* 如果有:将其设置为活动项目,并通过运行以下命令添加默认别名:
npx -y firebase-tools@latest use --add <PROJECT_ID>
* 如果没有:请按照 [references/firebase-project-create.md](https://github.com/firebase/skills/blob/HEAD/skills/firebase-basics/references/firebase-project-create.md) 中的项目创建说明操作。
在使用 Firebase 时,请遵循以下原则,以确保可靠性和项目工具的最新性:
npx -y firebase-tools@latest,而不是仅仅使用 firebase。(例如,使用 npx -y firebase-tools@latest --version 而不是 firebase --version)。developerknowledge_search_documents MCP 工具,然后再回退到 Google 搜索或您的内部知识库。在搜索查询中包含 "Firebase" 可以显著提高相关性。npx -y firebase-tools@latest login --no-localhost。每周安装数
377
代码仓库
GitHub 星标数
182
首次出现
2026年2月11日
安全审计
安装于
gemini-cli366
codex363
opencode363
github-copilot359
amp354
kimi-cli354
Please complete these setup steps before proceeding, and remember your progress to avoid repeating them in future interactions.
Local Environment Setup: Verify the environment is properly set up so we can use Firebase tools:
npx -y firebase-tools@latest --version to check if the Firebase CLI is installed.firebase-local-env-setup skill to get the environment ready.Authentication: Ensure you are logged in to Firebase so that commands have the correct permissions. Run npx -y firebase-tools@latest login. For environments without a browser (e.g., remote shells), use npx -y firebase-tools@latest login --no-localhost.
Active Project: Most Firebase tasks require an active project context. Check the current project by running npx -y firebase-tools@latest use.
Active Project: <project-id>, you can proceed with your task.If yes: Set it as the active project and add a default alias by running:
npx -y firebase-tools@latest use --add <PROJECT_ID>
If no: Follow the project creation instructions in references/firebase-project-create.md.
Please adhere to these principles when working with Firebase, as they ensure reliability and up-to-date project tools:
npx -y firebase-tools@latest instead of just firebase. (e.g., use npx -y firebase-tools@latest --version instead of firebase --version).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.npx -y firebase-tools@latest login --no-localhost instead.Weekly Installs
377
Repository
GitHub Stars
182
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli366
codex363
opencode363
github-copilot359
amp354
kimi-cli354
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装