# 使用 Homebrew, winget, scoop 安装 firebase-cli

查看 firebase-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:firebase-cli
```

## 代理安全回答

firebase-cli deploys and manages Firebase projects and Google-backed resources.

- **凭据访问:** Reads Firebase auth tokens, project config, service credentials, and environment variables.
- **远程变更:** Can deploy hosting, functions, rules, and project configuration.
- **发布/制品风险:** Publishes web assets, functions, and security rules.
- **推荐控制:** Gate deploy, functions, rules, login, and token operations.
- **代理使用指南:** Allow project inspection; require approval before deploys or rule changes.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install firebase-cli
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id Google.FirebaseCLI -e
```

  证据: Windows Package Manager source index: Google.FirebaseCLI from https://cdn.winget.microsoft.com/cache/source.msix

- Scoop (92%):

```sh
scoop install main/firebase
```

  证据: Scoop official bucket manifest trees: bucket/firebase.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:firebase-cli
- **软件包管理器:** Homebrew
- **版本:** 15.25.1
- **来源摘要:** Firebase command-line tools
- **主页:** <https://firebase.google.com/docs/cli/>
- **最后更新:** 2026-08-01T03:37:10Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- firebase (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 15.25.1
## 项目历史与用法

Firebase CLI is Google's command-line tool for testing, managing, and deploying Firebase projects. The `firebase` executable covers project setup, deployment, local emulation, Hosting, Realtime Database, Firestore, Cloud Functions, Authentication import/export, Extensions, App Distribution, Remote Config, and related Firebase operations.

### 项目历史

The firebase-tools GitHub repository was created in December 2013, during Firebase's early developer-platform era. The official README now describes it as both the Firebase Command Line Interface tools and the home of the official Firebase MCP Server.

Firebase CLI grew with the Firebase platform. Its README command list shows the tool expanding beyond Hosting deployment into project management, local emulators, App Distribution, Authentication, Realtime Database, Extensions, Firestore, Cloud Functions, Hosting, and Remote Config.

### 采用历史

The primary installation path is npm: `npm install -g firebase-tools` provides the globally accessible `firebase` command. The official README also documents a standalone binary installer, which matters for users who want a dependency-light CLI outside a Node development environment.

Firebase CLI adoption is tied to Firebase project workflows. Developers use it locally for `firebase init`, `firebase login`, emulator startup, and deployment; teams use it in CI for deploys, project listing, and authenticated service-account or token-based automation.

### 使用方式

A typical workflow starts with `firebase login` and `firebase init`, which creates a `firebase.json` configuration file in the current project directory. Deployment commands then rely on that local project folder and configuration.

The CLI is also a local development surface. Commands such as `emulators:start`, `emulators:exec`, `serve`, and Functions shell support let developers test Firebase services before deploying to Google-hosted infrastructure.

### 为什么软件包爱好者会关心

Firebase CLI is significant because it is a cloud product's operational surface packaged as a local developer tool. Installing one package gives a project its deploy command, emulator runner, auth setup, project selector, data import/export utility, and CI automation hook.

For package managers, it is also a Node-based CLI with standalone binary distribution, so it sits at the intersection of npm global installs, Homebrew-style desktop tooling, and vendor-managed cloud workflows.

### 时间线

- 2013: firebase-tools repository is created on GitHub.
- 2010s: npm global installation becomes the primary documented installation path for the `firebase` command.
- 2020s: CLI command surface includes local emulators, App Distribution, Extensions, Firestore, Functions, Hosting, and Remote Config workflows.
- 2026: Repository metadata and the README snapshot used for this enrichment show active maintenance and the addition of the official Firebase MCP Server in the same repository.

### Related projects

- Firebase Hosting, Cloud Functions for Firebase, Realtime Database, Cloud Firestore, Authentication, Remote Config, App Distribution, Extensions, and the Emulator Suite are first-party services managed by the CLI.
- Node.js and npm are the primary runtime and package-manager path documented for installing firebase-tools.
- Google Cloud service-account credentials and Application Default Credentials are supported authentication paths for automation.

### 来源

- <https://firebase.google.com/docs/cli>
- <https://github.com/firebase/firebase-tools>
- <https://raw.githubusercontent.com/firebase/firebase-tools/master/README.md>
- <https://api.github.com/repos/firebase/firebase-tools>


## 安全说明

没有找到 firebase-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/configstore/firebase-tools.json

## Credential files

- Unix: ~/.config/configstore/firebase-tools.json
## 其他软件包管理器记录

- winget - Google.FirebaseCLI: normalized package name match | Windows Package Manager source index: Google.FirebaseCLI from https://cdn.winget.microsoft.com/cache/source.msix
- Scoop - main/firebase: installed executable or alias match | Scoop official bucket manifest trees: bucket/firebase.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/firebase-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/firebase-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
