📦

wrangler

آمن ⚙️ الأوامر الخارجية🌐 الوصول إلى الشبكة🔑 متغيرات البيئة

Desplegar Cloudflare Workers con Wrangler CLI

متاح أيضًا من: Dicklesworthstone

El despliegue de Cloudflare Workers requiere comprensión de comandos CLI, configuración y enlaces de recursos. Esta skill proporciona documentación completa para desplegar y gestionar Workers, KV, R2, D1 y más.

يدعم: Claude Codex Code(CC)
🥉 72 برونزي
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "wrangler". ¿Cómo despliego mi Worker?

النتيجة المتوقعة:

  • Ejecuta estos comandos:
  • 1. wrangler deploy - Desplegar a producción
  • 2. wrangler deploy --env staging - Desplegar al entorno de staging
  • 3. wrangler deploy --dry-run - Validar sin desplegar
  •  
  • Asegúrate de ejecutar wrangler check primero para validar tu configuración.

استخدام "wrangler". ¿Cómo agrego un namespace KV?

النتيجة المتوقعة:

  • 1. Crear namespace: wrangler kv namespace create MY_KV
  • 2. Agregar a wrangler.jsonc:
  • { "kv_namespaces": [{ "binding": "KV", "id": "<ID>" }] }
  • 3. Ejecutar wrangler types para actualizar los enlaces TypeScript

التدقيق الأمني

آمن
v1 • 2/17/2026

All 161 static findings are false positives. The skill is official Cloudflare documentation for the Wrangler CLI tool. External command detections are legitimate CLI commands documented in code blocks. Network detections are official Cloudflare URLs and localhost testing endpoints. Environment variable access is standard secret management documentation. No malicious behavior detected.

1
الملفات التي تم فحصها
888
الأسطر التي تم تحليلها
3
النتائج
1
إجمالي عمليات التدقيق

عوامل الخطر

⚙️ الأوامر الخارجية (133)
SKILL.md:12-14 SKILL.md:14-17 SKILL.md:17-19 SKILL.md:19-23 SKILL.md:23-24 SKILL.md:24-25 SKILL.md:25-26 SKILL.md:26-27 SKILL.md:27-28 SKILL.md:28 SKILL.md:28-32 SKILL.md:32-38 SKILL.md:38-44 SKILL.md:44-45 SKILL.md:45-46 SKILL.md:46-47 SKILL.md:47-48 SKILL.md:48-49 SKILL.md:49-50 SKILL.md:50-51 SKILL.md:51-59 SKILL.md:59-66 SKILL.md:66-70 SKILL.md:70-131 SKILL.md:131-135 SKILL.md:135-144 SKILL.md:144-152 SKILL.md:152-174 SKILL.md:174-178 SKILL.md:178-180 SKILL.md:180-190 SKILL.md:190-196 SKILL.md:196-198 SKILL.md:198-201 SKILL.md:201-209 SKILL.md:209-224 SKILL.md:224-228 SKILL.md:228-243 SKILL.md:243-247 SKILL.md:247-259 SKILL.md:259-267 SKILL.md:267-276 SKILL.md:276-280 SKILL.md:280-298 SKILL.md:298-302 SKILL.md:302-308 SKILL.md:308-316 SKILL.md:316-331 SKILL.md:331-335 SKILL.md:335-344 SKILL.md:344-348 SKILL.md:348-354 SKILL.md:354-362 SKILL.md:362-377 SKILL.md:377-381 SKILL.md:381-390 SKILL.md:390-394 SKILL.md:394-406 SKILL.md:406-410 SKILL.md:410-416 SKILL.md:416-420 SKILL.md:420-431 SKILL.md:431-439 SKILL.md:439-454 SKILL.md:454-458 SKILL.md:458-464 SKILL.md:464-468 SKILL.md:468-474 SKILL.md:474-482 SKILL.md:482-498 SKILL.md:498-502 SKILL.md:502-509 SKILL.md:509-517 SKILL.md:517-523 SKILL.md:523-527 SKILL.md:527-531 SKILL.md:531-541 SKILL.md:541-556 SKILL.md:556-560 SKILL.md:560-575 SKILL.md:575-583 SKILL.md:583-592 SKILL.md:592-596 SKILL.md:596-605 SKILL.md:605-609 SKILL.md:609-615 SKILL.md:615-619 SKILL.md:619-629 SKILL.md:629-637 SKILL.md:637-652 SKILL.md:652-656 SKILL.md:656-665 SKILL.md:665-669 SKILL.md:669-679 SKILL.md:679-687 SKILL.md:687-702 SKILL.md:702-706 SKILL.md:706-712 SKILL.md:712-720 SKILL.md:720-729 SKILL.md:729-733 SKILL.md:733-745 SKILL.md:745-749 SKILL.md:749-759 SKILL.md:759-765 SKILL.md:765-777 SKILL.md:777-785 SKILL.md:785-800 SKILL.md:800-804 SKILL.md:804-811 SKILL.md:811-819 SKILL.md:819-821 SKILL.md:821-823 SKILL.md:823-824 SKILL.md:824-836 SKILL.md:836-840 SKILL.md:840-846 SKILL.md:846-856 SKILL.md:856 SKILL.md:856-857 SKILL.md:857-858 SKILL.md:858-859 SKILL.md:859-860 SKILL.md:860-865 SKILL.md:865-874 SKILL.md:874-880 SKILL.md:880-882 SKILL.md:882-883 SKILL.md:883 SKILL.md:883-884 SKILL.md:884-885 SKILL.md:885-886 SKILL.md:886-887
🌐 الوصول إلى الشبكة (3)
🔑 متغيرات البيئة (6)

الأنماط المكتشفة

False Positive: External Commands DetectionFalse Positive: Network URL DetectionFalse Positive: Environment Access DetectionFalse Positive: Weak Cryptographic AlgorithmFalse Positive: Critical Heuristic - Dangerous Combination
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
85
المحتوى
50
المجتمع
100
الأمان
74
الامتثال للمواصفات

ماذا يمكنك بناءه

Desplegar un nuevo Worker en Cloudflare

Obtener guía paso a paso para inicializar y desplegar un nuevo Worker con la configuración adecuada

Configurar enlaces de almacenamiento KV y R2

Aprender a configurar almacenamiento clave-valor y almacenamiento de objetos para tu Worker

Gestionar secretos para Workers en producción

Gestionar de forma segura claves API y secretos usando comandos wrangler secret

جرّب هذه الموجهات

Despliegue básico de Worker
¿Cómo despliego mi Worker en Cloudflare usando wrangler?
Configurar namespace KV
Muéstrame cómo agregar un enlace de namespace KV a mi configuración wrangler.jsonc
Configurar secretos
¿Cómo agrego de forma segura claves API como secretos para mi Worker?
Desarrollo local con enlaces
¿Cómo pruebo mi Worker localmente con enlaces R2 y AI remotos?

أفضل الممارسات

  • Ejecutar wrangler check antes de cada despliegue para detectar errores de configuración
  • Usar wrangler types después de cualquier cambio de configuración para regenerar enlaces TypeScript
  • Establecer compatibility_date a una fecha reciente dentro de 30 días para las últimas funciones

تجنب

  • Codificar secretos directamente en wrangler.jsonc - usar wrangler secret en su lugar
  • Omitir wrangler types después de agregar nuevos enlaces
  • Desplegar sin probar localmente primero usando wrangler dev

الأسئلة المتكررة

¿Qué versión de wrangler debo usar?
Usar wrangler v4.x o posterior. Verificar con wrangler --version.
¿Puedo usar TOML o JSON para la configuración?
Preferir wrangler.jsonc (JSON con comentarios). Las funciones más nuevas son solo JSON.
¿Cómo pruebo mi Worker localmente?
Ejecutar wrangler dev. Usar wrangler dev --remote para enlaces de Cloudflare.
¿Dónde debo almacenar los secretos de desarrollo local?
Usar archivo .dev.vars en la raíz de tu proyecto. Nunca confirmar este archivo.
¿Cómo hago rollback de un despliegue defectuoso?
Usar wrangler rollback o wrangler rollback <VERSION_ID>.
¿Funciona Workers AI localmente?
No, Workers AI siempre se ejecuta de forma remota e incurre en cargos incluso en desarrollo local.

تفاصيل المطور

المؤلف

cloudflare

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md