Skillpedia
النشر والسحابة (DevOps)260k · #577

cloudflare-temporary-deploy

ما الذي تفعله

تساعد هذه المهارة وكيلك على نشر تطبيق ويب صغير أو Worker على عنوان مباشر دون إنشاء حساب Cloudflare أولًا. وهي لمن يريد رابطًا سريعًا قابلًا للمشاركة أو نشرًا تجريبيًا سريعًا.

متى تستخدمها

  • ✓عندما تريد أن ينشر وكيلك صفحة أو تطبيقًا على رابط مباشر دون التسجيل في Cloudflare.
  • ✓عندما تريد نموذجًا أوليًا سريعًا على الإنترنت تستطيع المطالبة به في حسابك لاحقًا.
  • ✓عندما تريد حلقة نشر وفحص آلية في جلسة تعمل في الخلفية.

رابط المهارة

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/cloudflare-temporary-deploy/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/cloudflare-temporary-deploy/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“انشر هذه الصفحة الصغيرة على Cloudflare وأعطني رابطًا مباشرًا أستطيع فتحه فورًا.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشغّل المهارة أداة wrangler مع علامة النشر المؤقت. تنشئ Cloudflare حسابًا مؤقتًا وتنشر الشيفرة، ثم تطبع رابط المطالبة الصالح لمدة 60 دقيقة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Cloudflare Temporary Deploy Skill

Deploy a Cloudflare Worker to a live workers.dev URL with zero account setup, using wrangler deploy --temporary. Cloudflare provisions a throwaway account, deploys, and prints a claim URL valid for 60 minutes; unclaimed accounts auto-delete. This gives an agent a tight write → deploy → verify loop without any OAuth, signup, or token copy-paste.

This skill does NOT cover production deploys (use wrangler login + a permanent account for those), nor non-Worker Cloudflare products beyond the temporary-account limits below.

When to Use

Load this skill when the user wants to:

  • Ship agent-written code to a live URL without first creating a Cloudflare account — "deploy this and give me a link"
  • Iterate in a background/autonomous session where a browser OAuth step would be a hard stop
  • Prototype or evaluate Workers quickly with a throwaway, claimable target
  • Build a self-verifying deploy loop — deploy, curl the live URL, confirm output matches the code, redeploy

When NOT to Use

  • Production or CI/CD → use a permanent account (wrangler login or CLOUDFLARE_API_TOKEN). --temporary errors out if any credential is present.
  • Wrangler is already authenticated → --temporary returns an error by design. Run wrangler logout first only if the user explicitly wants a throwaway deploy.
  • Long-lived hosting → temporary deployments are deleted after 60 minutes unless claimed.

Prerequisites

  • Wrangler 4.102.0 or later. This is the version that introduced --temporary. Earlier versions do not have it. Verify with npx wrangler@latest --version.
  • Node 18+ / npm (or npx, yarn, pnpm). No global install needed — npx wrangler@latest works.
  • No Cloudflare credentials present. --temporary only works when Wrangler is unauthenticated: no OAuth login, no CLOUDFLARE_API_TOKEN / CLOUDFLARE_API_KEY env var, no ~/.wrangler / ~/.config/.wrangler cached OAuth. Use the terminal tool's environment as-is; do not set those vars.
  • Network egress to cloudflare.com and workers.dev.
  • Using --temporary accepts Cloudflare's Terms of Service and Privacy Policy.

How to Run

Use the terminal tool for every step. Always pin the version (wrangler@latest or wrangler@4.102.0 or newer) so you don't accidentally run an old global wrangler that lacks the flag.

  1. Scaffold a minimal Worker (skip if the project already exists). A Worker needs a wrangler.toml (or wrangler.jsonc) and an entry script. Minimal TypeScript example — write these with write_file:

    wrangler.jsonc:

    {
      "name": "hello-agent",
      "main": "src/index.ts",
      "compatibility_date": "2025-01-01"
    }
    

    src/index.ts:

    export default {
      async fetch(): Promise<Response> {
        return new Response("hello cloudflare");
      },
    };
    
  2. Deploy with --temporary from the project directory:

    npx wrangler@latest deploy --temporary
    

    The proof-of-work check adds a short automatic delay. On success Wrangler prints an Account: <name> (created) (or (reused)) line, a Claim URL, and the live https://<worker>.<account>.workers.dev URL.

  3. Parse the URLs from that output. Run the helper to extract them reliably instead of eyeballing:

    npx wrangler@latest deploy --temporary 2>&1 | python scripts/parse_deploy_output.py
    

    (Resolve scripts/parse_deploy_output.py to this skill's absolute path.) It prints JSON: {"live_url", "claim_url", "account", "account_state", "expires_minutes", "deployed"}.

  4. Verify the deploy is actually live — do not trust the deploy log alone. curl the live URL and confirm the body matches what the code returns:

    curl -sS <live_url>
    
  5. Iterate. Edit the code, redeploy with the same npx wrangler@latest deploy --temporary. Within the 60-minute window Wrangler reuses the cached temporary account (Account: <name> (reused)), so the URL stays stable. curl again to confirm the change.

  6. Hand the claim URL to the user. Tell them: open it within 60 minutes to keep the deployment and any resources; if they don't claim it, everything auto-deletes. Treat the claim URL as a secret — it grants ownership of the account.

Quick Reference

Step Command
Check version (need 4.102.0+) npx wrangler@latest --version
Deploy (no account) `npx wrangler@latest deploy --tempora
الأسئلة الشائعة

كم يدوم الرابط؟

تقول المهارة إن رابط المطالبة صالح لمدة 60 دقيقة، وتُحذف الحسابات غير المطالَب بها تلقائيًا.

هل أستخدمه لموقع إنتاجي؟

لا. تقول المهارة إن النشر الإنتاجي يجب أن يستخدم حسابًا دائمًا، وإن النشر المؤقت يفشل إذا كانت بيانات الاعتماد موجودة.

ماذا لو كنت مسجّلًا الدخول إلى Wrangler؟

تقول المهارة إن النشر المؤقت يعيد خطأ في تلك الحالة، وعليك تسجيل الخروج أولًا إن أردت نشرًا مؤقتًا.

التفاصيل

الوصف الأصلي من المؤلف

Deploy a Worker live, no account, via wrangler --temporary.

repo: NousResearch/hermes-agent

الشعبية

نجوم GitHub
260k
الترتيب
#577
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة