# cloudflare-wrangler を Homebrew, MacPorts, Nix, pacman でインストール

cloudflare-wrangler のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

## エージェント安全性の回答

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

- **認証情報アクセス:** Reads Cloudflare tokens, account IDs, project config, and environment variables.
- **リモート変更:** Can deploy workers, change routes, and mutate Cloudflare resources.
- **公開/成果物リスク:** Publishes worker scripts and static assets to production edges.
- **推奨コントロール:** Gate deploy, secret, route, and account mutation commands.
- **エージェント利用ガイダンス:** Allow local build/dev; require approval before deploys, secret changes, or route updates.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wrangler
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:cloudflare-wrangler
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cloudflare-wrangler>
- **バージョン:** 4.118.0
- **ソース概要:** CLI tool for Cloudflare Workers
- **ホームページ:** <https://developers.cloudflare.com/workers/>
- **上流ドキュメント:** <https://developers.cloudflare.com/workers/>
- **ライセンス:** Apache-2.0 OR MIT
- **ソースアーカイブ:** <https://registry.npmjs.org/wrangler/-/wrangler-4.118.0.tgz>
- **最終更新:** 2026-08-01T15:07:28Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- wrangler (cli)
- wrangler2 (cli)
- wrangler (エイリアス)
- wrangler2 (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.118.0
- マネージャ更新日: 2026-08-01
- ローカルデータ: OK
- 上流リポジトリ: https://developers.cloudflare.com/workers/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

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


## セキュリティノート

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

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

## 他のパッケージマネージャ記録

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


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://pkg.so/ja/brew/node/) - Runtime dependency declared by Homebrew.
- [faas-cli](https://pkg.so/ja/brew/faas-cli/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools, serverless.
- [fastlane](https://pkg.so/ja/brew/fastlane/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [ios-deploy](https://pkg.so/ja/brew/ios-deploy/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [localstack](https://pkg.so/ja/brew/localstack/) - Shares pkgdb curated category or tags: cli, developer-tools, serverless.
- [neonctl](https://pkg.so/ja/brew/neonctl/) - Shares pkgdb curated category or tags: cli, developer-tools, serverless.
- [netlify-cli](https://pkg.so/ja/brew/netlify-cli/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [dylibbundler](https://pkg.so/ja/brew/dylibbundler/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [appwrite](https://pkg.so/ja/brew/appwrite/) - Shares pkgdb curated category or tags: cli, developer-platform, developer-tools.
- [artillery](https://pkg.so/ja/brew/artillery/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, node, serverless.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
