DIRECT UPLOAD WORKFLOW

Deploy a built folder straight to Cloudflare.

Want to publish a compiled HTML or Astro dist/ folder right from your computer? Authenticate directly with Cloudflare’s official Wrangler CLI — zero files or credentials ever pass through StaticLaunch.

LOCAL DEPLOYMENT

Publish straight from your computer.

4 steps
Step 1 of 4

Authenticate

Sign in through the official Wrangler CLI and confirm your Cloudflare account.

Open commands
Example preview01
Authenticate
01npx wrangler@latest login
02npx wrangler@latest whoami

Illustration · not connected to your accounts

Step 2 of 4

Prepare the build

Choose a new Direct Upload project and identify the compiled folder containing index.html.

Configure upload
Example preview02
Prepare the build
01npm run build
02Inspect output folder
03Exclude secrets

Illustration · not connected to your accounts

Step 3 of 4

Deploy and verify

Use the generated commands or optional local helper; inspect the resulting HTTPS URL.

Get deploy commands
Example preview03
Deploy and verify
01Create project
02Deploy compiled folder
03Open HTTPS URL

Illustration · not connected to your accounts

Step 4 of 4

Use the local helper

Download the script and inspect it before running. Authentication and files remain on your computer.

Download helper
Example preview04
Use the local helper
01Review script
02Run locally
03Verify output

Illustration · not connected to your accounts

1. Sign in directly to your Cloudflare account

Run Cloudflare’s official CLI from your terminal and verify you are logged into the account that should own the website.

Terminal — authenticate with Cloudflare
npx wrangler@latest login
npx wrangler@latest whoami

2. Generate your Direct Upload commands

Use Direct Upload only for new Direct Upload projects — never overwrite a Git-connected Pages project. Always review the folder for secrets before publishing.

Wrangler Direct Upload commands

3. Optional: Use the StaticLaunch local safety helper

Our open local Node script (staticlaunch.mjs) scans your folder for accidental .env, .git, private keys, or symlinks and asks you to type the project name before calling Wrangler.

Inspect first, then deploy after confirmation
node staticlaunch.mjs plan ./dist my-website
node staticlaunch.mjs deploy ./dist my-website