
Wrangler
CLICloudflare 官方 Workers 命令行,本地开发调试并部署 Workers,管理 D1、R2、KV 等资源并实时查看日志。官方推荐装在项目内,需要 Cloudflare 账号。
⛅️ wrangler
wrangler is a command line tool for building Cloudflare Workers.
Quick Start
To get started quickly with a Hello World worker, run the command below:
npx wrangler init my-worker -y
For more info, visit our Getting Started guide.
Wrangler System Requirements
We support running the Wrangler CLI with the Current, Active, and Maintenance versions of Node.js. Your Worker will always be executed in workerd, the open source Cloudflare Workers runtime.
Wrangler is only supported on macOS 13.5+, Windows 11, and Linux distros that support glib 2.35. This follows workerd's OS support policy.
Documentation
For the latest Wrangler documentation, click here.
To read more about Workers in general:
Configuration
Wrangler is configured via a wrangler.jsonc (recommended), wrangler.json or wrangler.toml file in the project root. An example configuration generated by npx wrangler init or npx create cloudflare is as follows:
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "./src/index.ts",
"compatibility_date": "YYYY-MM-DD",
}
For more detailed information about configuration, refer to the documentation.
Commands
The wrangler CLI offers various commands, the most popular being:
-
wrangler devto start a local development server, with live reloading and devtools. -
wrangler deployto deploy a Worker to the Cloudflare's global network.
There are many more commands and options available, for a full list refer to the official Cloudflare documentation.
相關資源

cloudflared
CLICloudflare Tunnel 官方客户端:无需开放防火墙端口即可把本地服务暴露到公网,也能代理 SSH、RDP 等 TCP 访问。命名隧道需 Cloudflare 账号与域名,快速隧道可免登录试用。
cloudflare/cloudflared16.2k
Vercel CLI
CLIVercel 官方命令行,一条命令把前端与全栈项目部署上线,并管理预览环境、环境变量、域名与日志。官方维护,需要 Vercel 账号(有免费档)。
vercel/vercel16.4k
Netlify CLI
CLINetlify 官方命令行:部署站点、用 Netlify Dev 在本地运行项目、管理环境变量、Functions 与 Blobs,并可直接调用 Netlify API。需要 Node.js 22.13 以上与 Netlify 账号登录。
netlify/cli1.9k
Firebase CLI
CLIFirebase 官方命令行:部署 Hosting、Cloud Functions 与安全规则,启动本地模拟器,读写数据库并导入导出用户;同仓库还提供官方 Firebase MCP 服务器。需要登录 Firebase 账号。
firebase/firebase-tools4.5k
Cloudflare MCP Server
MCPCloudflare 官方的一组远程 MCP 服务器:管理 Workers 及 KV、R2、D1 等绑定资源,查询日志与可观测性、构建记录、DNS 分析和 Radar 数据。通过 Cloudflare OAuth 授权,部分功能需付费套餐。
cloudflare/mcp-server-cloudflare4.4k
Cloudflare
SkillCloudflare 官方总览技能:按需求推荐 Workers、R2、D1、Durable Objects、Containers、AI 等平台产品,再引导加载对应子技能与文档。同仓库另有 Wrangler、Agents SDK 等专项技能。
cloudflare/skills3.1k