反复执行未固定版本的 firebase-tools@latest
原文依据:4 处模板获取、部署和验证都通过 `npx -y firebase-tools@latest` 执行。`latest` 会随注册表内容变化,`-y` 自动接受安装,因此用户无法仅凭该 Skill 确定将执行的具体工具版本。
如果未来发布的版本有缺陷、被供应链攻击或出现不兼容变化,它会以代理当前权限运行,并可能读取 Firebase 登录状态、修改工作区文件或操作云端项目。
获取模板、部署和版本验证都调用自动接受安装的 `firebase-tools@latest`。因此每次涉及本地文件和 Firebase 项目的操作都可能由不同版本的工具执行;部署命令还会改变云端配置。用户可要求固定 CLI 版本、核验包来源,并仅在明确批准后允许部署。
Manages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading/deploying remoteconfig JSON templates, managing version history/feature flags, setting in-app defaults, fetchAndActivate(), real-time listeners, or SDK setup. Don't use for Firebase Hosting, Auth, Firestore, Data Connect, Crashlytics, or App Hosting.compatibility: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.metadata:查看另外 3 个位置
- Deploy: Execute the partial deployment command ```bash npx -y firebase-tools@latest deploy --only remoteconfig ``` ```bash npx -y firebase-tools@latest remoteconfig:get -o remote_config.json ```- **Verification**: After deployment, verify the update by listing the version history. ```bash npx -y firebase-tools@latest remoteconfig:versions:list ```