# 安装 gemini-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gemini-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gemini-cli
```

  证据: MacPorts ports tree: llm/gemini-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gemini-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/ge/gemini-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gemini-cli
```

  证据: Arch Linux sync databases: gemini-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gemini-cli
```

  证据: openSUSE Tumbleweed package metadata: gemini-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gemini-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gemini-cli>
- **版本:** 0.43.0
- **来源摘要:** Interact with Google Gemini AI models from the command-line
- **主页:** <https://github.com/google-gemini/gemini-cli>
- **仓库:** <https://github.com/google-gemini/gemini-cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/@google/gemini-cli/-/gemini-cli-0.43.0.tgz>
- **更新:** 2026-05-23T22:40:29+09:00
- **生成来源:** 2026-05-26T22:45:13+00:00

## 可执行文件

- gemini (cli)
- gemini (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 0.43.0
- 管理器更新时间: 2026-05-23
- 本地数据: ok
- 上游仓库: https://github.com/google-gemini/gemini-cli
- info: No cached GitHub release or tag data was available.

## 安全说明

no executable entrypoint in the package index.

- **Geiger 风险:** green / low
- no executable entrypoint in the package index
- **审批门规则:** 5

## 相关链接

- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- approval-gate seed metadata
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
