# 使用 Homebrew 安装 cloudflare-cli4

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

## 安装

```sh
sudo av install brew:cloudflare-cli4
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cloudflare-cli4
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cloudflare-cli4
- **软件包管理器:** Homebrew
- **版本:** 2.19.4.post3
- **来源摘要:** CLI for Cloudflare API v4
- **主页:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **仓库:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **最后更新:** 2026-05-20T11:48:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cli4 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cloudflare-cli4 is Cloudflare's standalone packaging of the legacy cli4 Python command for calling Cloudflare API v4 endpoints from a shell.

### 项目历史

The official README says this repository is a snapshot of the cli4 Python tool that was originally packaged with the cloudflare Python package, and that starting with cloudflare v3 the CLI was split out and no longer actively developed.

### 采用历史

Its package history is tied to Python packaging and Cloudflare API users: the README shows pip-style installation from the repository, while the input record identifies the Homebrew formula cloudflare-cli4.

### 使用方式

The cli4 command maps shell arguments to Cloudflare API paths, supports JSON/YAML/NDJSON output, HTTP methods, profiles, headers, and configuration-backed API keys or tokens.

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

For package maintainers, cloudflare-cli4 is notable as a compatibility package: it preserves the older CLI workflow after the main Python Cloudflare package changed direction.

### 时间线

- 2016-2024: The README copyright span identifies Cloudflare-maintained history for the code.
- 2024: GitHub releases list 2.19.4 as the published release.
- 2024: The standalone repository's README says cli4 was split from the cloudflare Python package when that package reached v3 and was no longer actively developed.

### Related projects

- The README identifies the former parent package as the cloudflare Python package, and the docs target Cloudflare API v4.

### 来源

- <https://developers.cloudflare.com/api/ is the official Cloudflare API reference.>
- <https://github.com/cloudflare/python-cloudflare-cli4#readme documents the repository as the standalone cli4 snapshot, usage, and ~/.cloudflare/cloudflare.cfg.>
- source_facts.package-manager lists the Homebrew formula cloudflare-cli4.


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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: ~/.cloudflare/cloudflare.cfg

## Credential files

- Unix: ~/.cloudflare/cloudflare.cfg

## Combined YAML source

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


## 来源

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