# Install cloudflare-wrangler with Homebrew, MacPorts, Nix, pacman

CLI tool for Cloudflare Workers. Version 4.107.0 via Homebrew; verified 2026-07-03.

## Install

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

## Agent safety answer

cloudflare-wrangler deploys and manages Cloudflare Workers and related resources.

- **Credential access:** Reads Cloudflare tokens, account IDs, project config, and environment variables.
- **Remote mutation:** Can deploy workers, change routes, and mutate Cloudflare resources.
- **Publish/artifact risk:** Publishes worker scripts and static assets to production edges.
- **Recommended control:** Gate deploy, secret, route, and account mutation commands.
- **Agent-use guidance:** Allow local build/dev; require approval before deploys, secret changes, or route updates.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cloudflare-wrangler
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wrangler
```

  Evidence: MacPorts ports tree: devel/wrangler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#wrangler
```

  Evidence: nixpkgs package indexes: pkgs/by-name/wr/wrangler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S wrangler
```

  Evidence: Arch Linux sync databases: wrangler from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cloudflare-wrangler
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cloudflare-wrangler>
- **Version:** 4.107.0
- **Source summary:** CLI tool for Cloudflare Workers
- **Homepage:** <https://developers.cloudflare.com/workers/>
- **Repository:** <https://github.com/cloudflare/workers-sdk>
- **Upstream docs:** <https://developers.cloudflare.com/workers/wrangler>
- **License:** Apache-2.0 OR MIT
- **Source archive:** <https://registry.npmjs.org/wrangler/-/wrangler-4.107.0.tgz>
- **Last updated:** 2026-07-03T17:51:07Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- wrangler (cli)
- wrangler2 (cli)
- wrangler (alias)
- wrangler2 (alias)

## Dependencies

- node

## 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-08
- Package-manager version: 4.107.0
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://developers.cloudflare.com/workers/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Wrangler is Cloudflare's command-line interface for building, previewing, configuring, and deploying Cloudflare Workers and related developer-platform resources. The modern package lives in the official Cloudflare Workers SDK monorepo, while the earlier Wrangler v1 repository is archived as wrangler-legacy.

### Project history

Cloudflare introduced Wrangler as a Workers-focused CLI during the early growth of Workers as an edge/serverless platform. The original public Wrangler repository was created in 2019 and later archived as the v1 codebase, with current development consolidated into the workers-sdk monorepo that Cloudflare describes as home to Wrangler.

The move into workers-sdk matched Wrangler's broadening role: it stopped being only a deploy command for Worker scripts and became the CLI surface for local development, configuration files, environments, asset workflows, and other Cloudflare developer-platform features.

### Adoption history

Official Cloudflare documentation presents Wrangler as the standard CLI for Workers development. Package-manager metadata in this batch shows the Homebrew formula alongside MacPorts, Nix, and Arch packaging, while Cloudflare's primary installation path remains the JavaScript package ecosystem.

GitHub release metadata shows the workers-sdk monorepo publishing frequent wrangler-tagged releases through 2026, which is a useful signal for maintainers because the Homebrew package tracks a fast-moving upstream CLI rather than a slow system utility.

### How it is used

Developers use Wrangler to scaffold and configure Workers projects, run local development, deploy Workers, manage bindings and environments, and interact with Cloudflare platform resources from scripts and CI.

Wrangler configuration is project-local in wrangler.jsonc, wrangler.json, or wrangler.toml. Environment variables and secrets can be loaded from .env-style files for local workflows, with production secrets managed through Cloudflare's documented secret mechanisms.

### Why package nerds care

Wrangler is interesting to package maintainers because it is a Node-based, vendor-owned cloud CLI distributed both through npm-style workflows and operating-system package managers. That creates the usual tension between fast upstream release cadence, lockfile-heavy JavaScript packaging, and distro expectations for reproducibility.

The Homebrew formula name cloudflare-wrangler also preserves a vendor-qualified package identity even though the executable is wrangler, which helps avoid namespace ambiguity with unrelated tools.

### Timeline

- 2019: Original Cloudflare Wrangler v1 repository was created and Wrangler became the Workers CLI.
- 2021: Cloudflare created the workers-sdk monorepo, now described as the home of Wrangler.
- 2022: Early wrangler-tagged releases appeared in workers-sdk as the modern CLI line developed.
- 2023: Wrangler v1 repository was archived after v1 maintenance ended.
- 2026: workers-sdk continued publishing frequent wrangler@4.x releases.

### Related projects

- Cloudflare Workers is the runtime and deployment target Wrangler primarily manages.
- workers-sdk is the official monorepo that contains Wrangler and adjacent Workers developer tooling.
- Miniflare and workerd are related pieces of the local/runtime tooling stack around Workers development.

### Sources

- <https://developers.cloudflare.com/workers/wrangler/>
- <https://developers.cloudflare.com/workers/wrangler/configuration/>
- <https://github.com/cloudflare/workers-sdk>
- <https://github.com/cloudflare/wrangler-legacy>


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

- macOS: ~/Library/Preferences/.wrangler/config/default.toml
- Unix: ~/.wrangler/config/default.toml, ~/.config/.wrangler/config/default.toml, $XDG_CONFIG_HOME/.wrangler/config/default.toml

## Credential files

- macOS: ~/Library/Preferences/.wrangler/config/default.toml
- Unix: ~/.wrangler/config/default.toml, ~/.config/.wrangler/config/default.toml, $XDG_CONFIG_HOME/.wrangler/config/default.toml
## Source Database Details

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

## Other Package-Manager Records

- MacPorts - wrangler: installed executable or alias match | MacPorts ports tree: devel/wrangler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - wrangler: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/wr/wrangler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - wrangler - 4.82.2-1: installed executable or alias match | Arch Linux sync databases: wrangler from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The CLI for Cloudflare Workers | https://github.com/cloudflare/workers-sdk


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure 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.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [faas-cli](https://www.automicvault.com/pkg/brew/faas-cli/) - Shares av.db curated category or tags: cli, deployment, developer-tools, serverless.
- [appwrite](https://www.automicvault.com/pkg/brew/appwrite/) - Shares av.db curated category or tags: cli, developer-platform, developer-tools.
- [cartridge-cli](https://www.automicvault.com/pkg/brew/cartridge-cli/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [deployer](https://www.automicvault.com/pkg/brew/deployer/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [doubledown](https://www.automicvault.com/pkg/brew/doubledown/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [dylibbundler](https://www.automicvault.com/pkg/brew/dylibbundler/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [fabric](https://www.automicvault.com/pkg/brew/fabric/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [fastlane](https://www.automicvault.com/pkg/brew/fastlane/) - Shares av.db curated category or tags: cli, deployment, developer-tools.
- [wrangler](https://www.automicvault.com/pkg/npm/wrangler/) - Executable or command metadata overlaps with this package. Shared terms: cli, cloudflare, cloudflare-workers, deployment, serverless.

## Combined YAML source

View the package source record on GitHub. [combined/cloudflare-wrangler.yml](https://github.com/automic-vault/db/blob/main/combined/cloudflare-wrangler.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
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
