cf-temp-deploy
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
Deploy a Worker (plus bindings like KV, D1, Durable Objects) to Cloudflare without any account or login, using a temporary account via `wrangler deploy --temporary`. Use when the user wants something deployed/live/shared quickly and no Cloudflare credentials are configured.
In this repository2 other files it gives its agents.
- pdf-readerSkill
- reviewSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Do not use --temporary when credentials already exist: the flag errors out if Wrangler can authenticate via OAuth, CLOUDFLARE_API_TOKEN, or …
- Very specific: line 26
Make sure the project has a valid wrangler.jsonc/wrangler.toml and builds locally.
- Very specific: line 28
Check the Wrangler version — the flag requires Wrangler 4.102.0 or later (npx wrangler --version.
- Distinctive: line 76
If the project needs anything outside this list (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy To Cloudflare Via A Temporary Account
Cloudflare's temporary accounts for AI agents let you deploy a Worker to a live workers.dev URL with no account, no login,
and no human in the loop. Wrangler provisions a throwaway account, deploys,
and prints a claim URL the user can open to keep the deployment by
attaching it to a real Cloudflare account.
When to use
- The user wants a Worker/site/API deployed or shared now and no Cloudflare credentials are available in the environment.
- You are running unattended (background session, CI-like context) and cannot complete an OAuth browser flow.
Do not use --temporary when credentials already exist: the flag errors
out if Wrangler can authenticate via OAuth, CLOUDFLARE_API_TOKEN, or a
global API key. In that case, run a normal wrangler deploy.
How to deploy
- Make sure the project has a valid
wrangler.jsonc/wrangler.tomland builds locally. - Check the Wrangler version — the flag requires Wrangler 4.102.0 or
later (
npx wrangler --version; usenpx wrangler@latestif older). Deploy:
npx wrangler deploy --temporaryWrangler creates (or reuses) a temporary preview account, deploys the Worker to a
workers.devURL, and prints the claim URL.- Immediately relay both URLs to the user: the live
workers.devURL and the claim URL. The claim URL is the only way for them to keep the deployment — never omit or bury it.
The claim window — critical
- The temporary account is deleted after 60 minutes if unclaimed, along with the Worker and every resource created for it.
- Claiming: the user opens the claim URL, signs up for or into Cloudflare, and the whole temporary account — Worker, databases, and other bindings — transfers to their real account.
- Tell the user about the 60-minute deadline explicitly.
Redeploying and iterating
Wrangler caches the temporary account locally and reuses it while the account and claim URL are still valid, so you can iterate:
# fix code, then redeploy to the same temporary account
npx wrangler deploy --temporaryThe command output states whether the account was created or reused.
Supported products
Temporary preview accounts support a limited product set:
- Workers (and Workers Static Assets)
- Workers KV
- D1
- Durable Objects
- Hyperdrive
- Queues
- SSL/TLS certificates
If the project needs anything outside this list (e.g. R2, custom domains, Pages), a temporary deploy will not cover it — say so and fall back to a normal authenticated deploy.
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.

