# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cloudflare-cli4>
- **版本:** 2.19.4.post3
- **来源摘要:** CLI for Cloudflare API v4
- **主页:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **仓库:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **上游文档:** <https://developers.cloudflare.com/api>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/77/fd/87b3e026dcee2a6b891f2b6c98b8f0bc98a175c4b731c046b528298c07c5/cloudflare_cli4-2.19.4.post3.tar.gz>
- **最后更新:** 2026-05-20T11:48:50Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- cli4 (cli)
- cli4 (别名)

## 依赖

- certifi
- libyaml
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.19.4.post3
- 管理器更新时间: 2026-05-20
- 本地数据: OK
- 上游仓库: https://github.com/cloudflare/python-cloudflare-cli4
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cloudflare-cli4
- **Version Scheme:** 0
- **Revision:** 5
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [flarectl](https://www.automicvault.com/zh-hans/pkg/brew/flarectl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, cloudflare, dns.
- [cf-terraforming](https://www.automicvault.com/zh-hans/pkg/brew/cf-terraforming/) - Shares av.db curated category or tags: cli, cloud-infrastructure, cloudflare.
- [akamai](https://www.automicvault.com/zh-hans/pkg/brew/akamai/) - Shares av.db curated category or tags: api, cli, cloud-infrastructure.
- [aws-sso-cli](https://www.automicvault.com/zh-hans/pkg/brew/aws-sso-cli/) - Shares av.db curated category or tags: api, cli, cloud-infrastructure.
- [backplane-cli](https://www.automicvault.com/zh-hans/pkg/brew/backplane-cli/) - Shares av.db curated category or tags: api, cli, cloud-infrastructure.
- [cli53](https://www.automicvault.com/zh-hans/pkg/brew/cli53/) - Shares av.db curated category or tags: cli, cloud-infrastructure, dns.
- [denominator](https://www.automicvault.com/zh-hans/pkg/brew/denominator/) - Shares av.db curated category or tags: cli, cloud-infrastructure, dns.
- [dnscontrol](https://www.automicvault.com/zh-hans/pkg/brew/dnscontrol/) - Shares av.db curated category or tags: cli, cloud-infrastructure, dns.
- [linode-cli](https://www.automicvault.com/zh-hans/pkg/brew/linode-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, certifi, cli, cloud, cloud-infrastructure.
- [osc-cli](https://www.automicvault.com/zh-hans/pkg/brew/osc-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: api, api-client, certifi, cli, client.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
