Publish static site
deployPublish a local folder or HTML file to a public Cloudflare URL, with optional key-gated privacy and Cloudflare Access for email-restricted sharing.
Instructions
Publish a folder (or a single .html file) from this machine to a public Cloudflare URL. "tunnel" backend (default when signed out): local static server + cloudflared quick tunnel, *.trycloudflare.com URL; the process runs in the background and outlives the session. "workers" backend (default when signed in): Cloudflare Workers with static assets, fixed URL https://..workers.dev; redeploying updates the same address. Idempotent on tunnel: if the same path is already live, returns the existing URL (reused=true). Deploys are PRIVATE by default on both backends (key-gated link; on workers a gate Worker runs in front of the files); pass public=true to publish openly. access=[emails] (workers backend, API-token login) puts Cloudflare Access in front instead: visitors sign in with a one-time email code and only listed emails get in. Returns JSON with url and, when private, privateUrl (already includes #key=...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Deploy name (slug). Defaults to the folder/file name | |
| path | Yes | Absolute path of the folder or .html file to publish | |
| access | No | Emails allowed to sign in through Cloudflare Access (identity gate instead of the key link; workers backend) | |
| public | No | Publish without the key gate (default false: private) | |
| backend | No | auto = workers when signed in to Cloudflare, otherwise tunnel | |
| expires | No | Private key lifetime, e.g. "30m", "24h", "7d" (default: never expires) | |
| restart | No | Restart even if already live (yields a new URL on tunnel) |