Cloudflare temporary deploy

From sheawinkler/hermes-agent-ultra · View interactive version

Cloudflare temporary deploy is an AI agent skill from the GitHub repository sheawinkler/hermes-agent-ultra. Deploy a Worker live, no account, via wrangler --temporary.

How to use this skill

Skill file

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 OAuth, signup, or token copy-paste.

This skill does not cover production deploys. Use wrangler login plus a permanent account for those. It also does not cover non-Worker Cloudflare products beyond the temporary-account limits below.

When to Use

Load this skill when the user wants to:

When NOT to Use

Prerequisites

How to Run

Use the terminal tool for every step. Always pin Wrangler with wrangler@latest or a version >=4.102.0 so you do not accidentally run an old global binary that lacks --temporary.

  1. Scaffold a minimal Worker if the project does not already exist.

wrangler.jsonc:

```jsonc

{

"name": "hello-agent",

"main": "src/index.ts",

"compatibility_date": "2025-01-01"

}

```

src/index.ts:

```typescript

export default {

async fetch(): Promise<Response> {

return new Response("hello cloudflare");

},

};

```

  1. Deploy with --temporary from the project directory.

```bash

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.

  1. Parse the URLs from deploy output with Hermes' Rust parser.

```bash

npx wrangler@latest deploy --temporary 2>&1 | hermes cloudflare parse-temporary-deploy-output

```

The parser prints JSON with live_url, claim_url, account, account_state, expires_minutes, and deployed. It exits non-zero if no live workers.dev URL is present, so scripts can branch on failure.

  1. Verify the deploy is actually live. Do not trust the deploy log alone.

```bash

curl -sS <live_url>

```

Confirm the body matches what the Worker code returns.

  1. Iterate. Edit the Worker, then redeploy with the same command. Within the 60-minute window Wrangler reuses the cached temporary account, so the URL stays stable. curl again to confirm the change.
  1. Hand the claim URL to the user. Tell them to open it within 60 minutes to keep the deployment and resources. If they do not claim it, everything auto-deletes. Treat the claim URL as a secret because it grants ownership of the temporary account.

Quick Reference

| Step | Command |

|---|---|

| Check version | npx wrangler@latest --version |

| Deploy without account | npx wrangler@latest deploy --temporary |

| Deploy and parse URLs | npx wrangler@latest deploy --temporary 2>&1 \| hermes cloudflare parse-temporary-deploy-output |

| Parser self-test | hermes cloudflare --selftest |

| Verify live URL | curl -sS <live_url> |

| Clear cached temporary account | npx wrangler@latest logout |

Temporary Account Product Limits

| Product | Limit on a temporary account |

|---|---|

| Workers | Deploys to workers.dev |

| Static Assets | Up to 1,000 files, 5 MiB each |

| KV | Allowed |

| D1 | 1 database, 100 MB per DB / 100 MB total |

| Durable Objects | Allowed |

| Hyperdrive | 2 configs, 10 connections |

| Queues | Up to 10 |

| SSL/TLS certs | Allowed |

Pitfalls

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.