Date: 2026-01-08 00:00 Summary: Documented how to initialize a Cloudflare Workers/Pages project with Wrangler.
[question] how to initial cloudflare project
[try to solve] To bootstrap a Cloudflare project (Workers and/or Pages), use the official Wrangler CLI.
- Install Wrangler if needed:
npm install -g wrangler
- Initialize a Workers project:
wrangler init worker-project
Or initialize in the current directory:
wrangler init .
For Cloudflare Pages (static sites or frameworks such as Next.js/React): create the app files (
package.json,public,src, etc.) locally, then connect the GitHub repo in the Pages dashboard to deploy.Configure
wrangler.tomlwith account and project settings.Local preview:
wrangler dev
- Deploy (historical note; modern Wrangler uses
wrangler deploy):
wrangler publish
Share the target framework or layout if a more automated scaffold is needed.