# Install cloudflare-cli4 with Homebrew

CLI for Cloudflare API v4. Version 2.19.4.post3 via Homebrew; verified 2026-05-20.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:cloudflare-cli4
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cloudflare-cli4>
- **Version:** 2.19.4.post3
- **Source summary:** CLI for Cloudflare API v4
- **Homepage:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **Repository:** <https://github.com/cloudflare/python-cloudflare-cli4>
- **Upstream docs:** <https://developers.cloudflare.com/api>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/77/fd/87b3e026dcee2a6b891f2b6c98b8f0bc98a175c4b731c046b528298c07c5/cloudflare_cli4-2.19.4.post3.tar.gz>
- **Last updated:** 2026-05-20T11:48:50Z
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- cli4 (cli)
- cli4 (alias)

## Dependencies

- certifi
- libyaml
- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 2.19.4.post3
- Package-manager updated: 2026-05-20
- Local data: ok
- Upstream repository: https://github.com/cloudflare/python-cloudflare-cli4
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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.


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- 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 Details

- **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


## Related links

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


## Sources

- 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
