cloudflare-pages-wrangler

Configure and deploy Cloudflare Pages projects using Wrangler CLI.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill cloudflare-pages-wrangler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-pages-wrangler
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/cloudflare-pages-wrangler
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill cloudflare-pages-wrangler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Pages + Wrangler CLI 結合參考,提供完整的技術說明與工作流程,讓開發者能快速上手並在專案中正確使用 Wrangler 命令與設定檔。

Core Features & Use Cases

  • 全面涵蓋 Wrangler CLI 指令集與 Pages 部署工作流程(deploy、dev、tail、secret、types、versions、rollback 等)。
  • 指引如何撰寫或修改 wrangler.toml、wrangler.jsonc、wrangler.json 等設定檔。
  • 與 GitHub Actions 的整合範例(cloudflare/wrangler-action@v3、cloudflare/pages-action)。
  • 覆蓋 Cloudflare Pages Functions 的檔案與路由(functions/、onRequest 與各 HTTP 方法、_middleware.ts、_worker.js、context、bindings)。
  • Pages bindings(KV、R2、D1、Durable Objects、Queues、Hyperdrive、Vectorize、AI、Browser)與部署到 Cloudflare Workers 的要點。
  • Pages 建置設定與建置輸出目錄、CF_PAGES_* 環境變數的使用。
  • 從 Cloudflare Pages 遷移至 Workers Static Assets 的遷移要點與注意事項。
  • 工具:wrangler ^3.x/^4.x、cloudflare/wrangler-action@v3。

Quick Start

Use Wrangler CLI workflows to set up and deploy Cloudflare Pages projects.

Frequently Asked Questions about cloudflare-pages-wrangler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Cloudflare Pages project using the Wrangler CLI?

To deploy a Cloudflare Pages project using Wrangler CLI, configure your build output directory and run the deploy command. This Skill provides structured reference for wrangler.json and wrangler.toml formats to ensure correct deployment configurations.

What are Cloudflare Pages Functions and how does routing work?

Cloudflare Pages Functions use a functions/ directory with onRequest handlers for HTTP methods and _middleware.ts for routing. This Skill documents file-based routing, context objects, and bindings integration for building dynamic server-side endpoints.

Can I integrate Wrangler CLI deployments with GitHub Actions?

Yes, you can integrate Wrangler CLI deployments with GitHub Actions using cloudflare/wrangler-action@v3 or cloudflare/pages-action. This Skill provides automation pipeline examples for continuous deployment workflows.

What Cloudflare bindings are supported in Pages projects?

Cloudflare Pages projects support KV, R2, D1, Durable Objects, Queues, Hyperdrive, Vectorize, AI, and Browser bindings. This Skill details how to configure these bindings within your wrangler configuration files.

How do I migrate from Cloudflare Pages to Workers Static Assets?

Migrating from Cloudflare Pages to Workers Static Assets requires updating your wrangler configuration and adjusting routing logic. This Skill outlines the migration steps and key considerations for transitioning your deployment target.