wrangler
Skill9 starsChanged 3 months agoMITView on GitHub
Use Cloudflare Wrangler CLI for Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and secrets.
- Reads credentials
- Installs packages
52 other projects use a version of this, 34 of them edited.
Adopted by
Most recently taken up by
- Arupbiswas09/claude_skillsedited, first seen Nov 29, 2026
- Masih-0x3/agent-skillsedited, first seen Nov 29, 2026
- alexj11324/Mikkatheir own version, first seen Nov 29, 2026
- agentwright-app/sitetheir own version, first seen Nov 29, 2026
- timmo001/skillstheir own version, first seen Nov 23, 2026
- risu729/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use nextjs-on-cloudflare, basin and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudflareSkillnextjs-on-cloudflare
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with `npx skills add cloudflare/vinext` if missing, then read and follow the applicable skill and docs.
Also in 6 projects that use this
CloudflareSkillbasin
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.
Also in 6 projects that use this
- +10 more from cloudflare
Other versions52 projects use a version of this.
Word for word · 0
None found.
Edited · 34
- openai/plugins★ 8.4k19% same
- Sayhi-bzb/Agent-HTML★ 54216% same
- open-fox/agents★ 5516% same
- rianvdm/lastfm-mcp★ 5521% same
- Kilo-Org/cloud★ 2318% same
- d-padmanabhan/agent-engineering-handbook★ 2016% same
- delorenj/skills★ 1716% same
- kevyder/banrepco_mcp★ 916% same
- Marvellbrazil/my-agentic-skills★ 516% same
- mppyxx/claude-power-pack★ 516% same
24 more not listed
Wrote their own version · 18
- steipete/agent-scripts★ 7.6ksame name
- joe-bell/cva★ 6.9ksame name
- cloudflare/skills★ 3.5ksame name
- swyxio/skills★ 203same name
- alexj11324/Mikka★ 90same name
- aspectly-labs/Mikka★ 90same name
- Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations★ 73same name
- adrienlupo/Claude-code-config★ 3same name
- timmo001/skills★ 3same name
- Hahuyphananh/GRYND★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/orchestrator/mcp-server/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-md-refactorSkill
- agent-team-codexSkill
- agent-teamSkill
- antigravity-mnemoSkill
- antigravitySkill
- api-handoffSkill
- api-testerSkill
- argosSkill
- atlasSkill
- auto-continue-loopSkill
- autoresearchSkill
- biz-strategySkill
- ceoSkill
- clioSkill
- code-reviewerSkill
- codex-mnemoSkill
- codexSkill
- command-creatorSkill
- commit-workSkill
- consistency-auditSkill
- crafting-effective-readmesSkill
- daily-meeting-updateSkill
- database-schema-designerSkill
- datadog-cliSkill
- data-visualizationSkill
- dependency-updaterSkill
- deprecation-and-migrationSkill
- design-planSkill
- design-system-starterSkill
- devin-mnemoSkill
- diagram-designSkill
- docker-db-backupSkill
- docker-deploySkill
- documentation-and-adrsSkill
- docxSkill
- domain-dictionarySkill
- domain-name-brainstormerSkill
- dotnet-coding-standardsSkill
- draw-ioSkill
- estimateSkill
- excalidrawSkill
- excel2mdSkill
- explainSkill
- find-skillsSkill
- flow-verifierSkill
- frontend-designSkill
- fullstack-coding-standardsSkill
- game-changing-featuresSkill
- grok-mnemoSkill
- gs-certificationSkill
- health-dataSkill
- hestiaSkill
- humanizerSkill
- irisSkill
- jiraSkill
- ko-en-translatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 0 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 52 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 23
Use
wrangler.jsonc: Prefer JSON config over TOML. - Very specific: line 24
Set
compatibility_date: Use a recent date (within 30 days). - Very specific: line 25
Generate types after config changes: Run wrangler types to update TypeScript bindings.
- Very specific: line 27
Validate config before deploy: Run wrangler deploy --dry-run to catch errors early.
- Very specific: line 114
Use remote: true in binding config for real resources while running locally:
- Very specific: line 241
Set
compatibility_date: Update quarterly. - Very specific: line 242
Use
.dev.varsfor local secrets: Never commit secrets.
“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wrangler CLI
Deploy, develop, and manage Cloudflare Workers and associated resources.
FIRST: Verify Wrangler Installation
wrangler --version # Requires v4.x+If not installed:
npm install -D wrangler@latestKey Guidelines
- Use
wrangler.jsonc: Prefer JSON config over TOML. Newer features are JSON-only. - Set
compatibility_date: Use a recent date (within 30 days). - Generate types after config changes: Run
wrangler typesto update TypeScript bindings. - Local dev defaults to local storage: Bindings use local simulation unless
remote: true. - Validate config before deploy: Run
wrangler deploy --dry-runto catch errors early. - Use environments for staging/prod: Define
env.stagingandenv.productionin config.
Quick Start: New Worker
npx wrangler init my-worker
npx create-cloudflare@latest my-app # With a frameworkQuick Reference: Core Commands
| Task | Command |
| Start local dev server | wrangler dev |
| Deploy to Cloudflare | wrangler deploy |
| Deploy dry run | wrangler deploy --dry-run |
| Generate TypeScript types | wrangler types |
| Validate configuration | wrangler deploy --dry-run |
| View live logs | wrangler tail |
| Delete Worker | wrangler delete |
| Auth status | wrangler whoami |
Configuration (wrangler.jsonc)
Minimal Config
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2026-01-01"
}Full Config with Bindings
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2026-01-01",
"compatibility_flags": ["nodejs_compat_v2"],
"vars": { "ENVIRONMENT": "production" },
"kv_namespaces": [{ "binding": "KV", "id": "<KV_NAMESPACE_ID>" }],
"r2_buckets": [{ "binding": "BUCKET", "bucket_name": "my-bucket" }],
"d1_databases": [{ "binding": "DB", "database_name": "my-db", "database_id": "<DB_ID>" }],
"ai": { "binding": "AI" },
"vectorize": [{ "binding": "VECTOR_INDEX", "index_name": "my-index" }],
"hyperdrive": [{ "binding": "HYPERDRIVE", "id": "<HYPERDRIVE_ID>" }],
"durable_objects": { "bindings": [{ "name": "COUNTER", "class_name": "Counter" }] },
"triggers": { "crons": ["0 * * * *"] },
"env": {
"staging": { "name": "my-worker-staging", "vars": { "ENVIRONMENT": "staging" } }
}
}Generate Types from Config
wrangler types # Generate worker-configuration.d.ts
wrangler types ./src/env.d.ts # Custom output path
wrangler types --check # Check types are up to date (CI)Local Development
wrangler dev # Local mode (default)
wrangler dev --env staging # With specific environment
wrangler dev --local # Force local-only
wrangler dev --remote # Remote mode (legacy)
wrangler dev --port 8787 # Custom port
wrangler dev --live-reload # Live reload for HTML changes
wrangler dev --test-scheduled # Test scheduled/cron handlers
# Then visit: http://localhost:8787/__scheduledRemote Bindings for Local Dev
Use remote: true in binding config for real resources while running locally:
{
"r2_buckets": [{ "binding": "BUCKET", "bucket_name": "my-bucket", "remote": true }],
"ai": { "binding": "AI", "remote": true },
"vectorize": [{ "binding": "INDEX", "index_name": "my-index", "remote": true }]
}Recommended remote: AI (required), Vectorize, Browser Rendering, mTLS, Images.
Local Secrets
Create .dev.vars:
API_KEY=local-dev-key
DATABASE_URL=postgres://localhost:5432/devDeployment
wrangler deploy # Deploy to production
wrangler deploy --env staging # Deploy specific environment
wrangler deploy --dry-run # Validate without deploying
wrangler deploy --keep-vars # Keep dashboard-set variables
wrangler deploy --minify # Minify codeManage Secrets
wrangler secret put API_KEY # Set interactively
echo "value" | wrangler secret put API_KEY # Set from stdin
wrangler secret list # List secrets
wrangler secret delete API_KEY # Delete
wrangler secret bulk secrets.json # Bulk from JSONVersions and Rollback
wrangler versions list
wrangler versions view <VERSION_ID>
wrangler rollback
wrangler rollback <VERSION_ID>Storage & Compute Services
상세 CLI 레퍼런스: references/storage-services.md (KV, R2, D1, Vectorize, Hyperdrive)
상세 CLI 레퍼런스: references/compute-services.md (AI, Queues, Containers, Workflows, Pipelines, Secrets Store, Pages)
Observability
wrangler tail # Stream live logs
wrangler tail my-worker # Tail specific Worker
wrangler tail --status error # Filter by status
wrangler tail --format json # JSON outputConfig: "observability": { "enabled": true, "head_sampling_rate": 1 }
Performance
wrangler check startup # Worker 시작(startup) 단계 CPU 프로파일 생성
wrangler check startup --args="--no-bundle" # deploy를 --no-bundle로 할 때wrangler check startup은 Worker의 시작 단계 CPU 프로파일을 만들어, 시작 시간 한도를 초과하는 스크립트를 찾게 해줍니다. 생성된 프로파일을 Chrome DevTools로 import하거나 VSCode에서 열어 flamegraph로 분석합니다.
- 측정은 로컬 머신 CPU 기준이라 Cloudflare 실제 시작 시간과 절대값이 다릅니다 — "전체 시간"이 아니라 "어디에 시간이 쓰이는지"를 보는 용도.
- 시작 시간 한도 초과로 배포가 실패하면 Wrangler가 자동으로 CPU 프로파일을 생성합니다.
- 주의:
wrangler check는 이startup서브커맨드뿐 — 설정 검증 명령이 아닙니다(설정/빌드 검증은wrangler deploy --dry-run).
Testing with Vitest
npm install -D @cloudflare/vitest-pool-workers vitest// vitest.config.ts
import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config";
export default defineWorkersConfig({
test: {
poolOptions: {
workers: { wrangler: { configPath: "./wrangler.jsonc" } },
},
},
});Troubleshooting
| Issue | Solution |
command not found: wrangler | npm install -D wrangler |
| Auth errors | wrangler login |
| Config validation errors | wrangler deploy --dry-run |
| Type errors after config change | wrangler types |
| Local storage not persisting | Check .wrangler/state directory |
| Binding undefined in Worker | Verify binding name matches config |
Best Practices
- Version control
wrangler.jsonc: Source of truth for Worker config. - Use automatic provisioning: Omit resource IDs for auto-creation.
- Run
wrangler typesin CI: Catch binding mismatches. - Use environments: Separate staging/production.
- Set
compatibility_date: Update quarterly. - Use
.dev.varsfor local secrets: Never commit secrets. - Test locally first:
wrangler devbefore deploying. - Use
--dry-runbefore major deploys.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

