Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix, pacman 安装 cloudflare-wrangler

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

代理安全

代理安全回答

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%
brew install cloudflare-wrangler

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install wrangler

MacPorts ports tree · devel/wrangler/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#wrangler

nixpkgs package indexes · pkgs/by-name/wr/wrangler/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S wrangler

Arch Linux sync databases · wrangler · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

CLI tool for Cloudflare Workers

命令和别名

  • wrangler
  • wrangler2

历史

项目历史与用法

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.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

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

Credential-bearing paths to review before unattended agent runs.

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
wranglercli全局可执行文件
wrangler2cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本4.114.0
管理器更新时间2026-07-24
本地数据OK
上游not checked
检测到的最新版本未检测到

https://developers.cloudflare.com/workers/

安装元数据

软件包元数据

软件包键brew:cloudflare-wrangler
版本4.114.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cloudflare-wrangler
主页https://developers.cloudflare.com/workers/
仓库https://github.com/cloudflare/workers-sdk
上游文档https://developers.cloudflare.com/workers/wrangler
许可证Apache-2.0 OR MIT
源码归档https://registry.npmjs.org/wrangler/-/wrangler-4.114.0.tgz
最后更新2026-07-24T20:41:25Z
Pulseupdated
依赖node
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecloudflare-wrangler
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts94%

wrangler

sudo port install wrangler
  • installed executable or alias match
  • 匹配方式:Wrangler
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/wrangler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

wrangler

nix profile install nixpkgs#wrangler
  • installed executable or alias match
  • 匹配方式:Wrangler
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/wr/wrangler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman92%

wrangler 4.82.2-1

The CLI for Cloudflare Workers

https://github.com/cloudflare/workers-sdk

sudo pacman -S wrangler
  • License: Apache-2.0 AND MIT
  • Architecture: x86_64
  • 5 依赖
  • installed executable or alias match
  • 匹配方式:Wrangler
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: wrangler from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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