Cloudflare Pages Setup Guide

Step-by-step instructions to get your Cloudflare credentials for automatic deployment

Step 1: Log in to Cloudflare Dashboard

Visit the Cloudflare dashboard and log in with your account. You can create a free account if you don't have one.

Open Cloudflare Dashboard
πŸ’‘ Free accounts can use Cloudflare PagesπŸ’‘ Supports Google, GitHub and other OAuth logins

Step 2: Get Your Account ID

After logging in, you can find your Account ID in the right sidebar of any page, or from the URL.

  1. Click on any domain or go to Workers & Pages
  2. Look for "Account ID" in the right sidebar
  3. Or copy from the browser URL: dash.cloudflare.com/[Account ID]/...
πŸ’‘ Account ID is a 32-character hexadecimal stringπŸ’‘ Each Cloudflare account has only one Account ID

Step 3: Create an API Token

Create an API Token with Cloudflare Pages permissions.

Open API Tokens Page
  1. Click the "Create Token" button
  2. Select "Edit Cloudflare Workers" template, or customize
  3. If customizing, ensure these permissions:
  4. β€’ Account > Cloudflare Pages > Edit
  5. β€’ Account > Account Settings > Read
  6. Click "Continue to summary" then "Create Token"
  7. Copy the generated token (shown only once!)
πŸ’‘ Token is shown only once, save it securelyπŸ’‘ Using the template ensures correct permissionsπŸ’‘ Set token expiry for better security

Step 4: Enter Configuration

Enter the Account ID and API Token in FlyPloy's Cloudflare configuration.

  1. Open Cloudflare config in the deploy or settings page
  2. Enter your Account ID
  3. Enter your API Token
  4. (Optional) Specify Project Name, leave empty for auto-generation
πŸ’‘ Project Name is your project name on Cloudflare PagesπŸ’‘ First deployment will auto-create the project

Frequently Asked Questions

Why do I need Cloudflare?

Cloudflare Pages provides free static website hosting with global CDN, automatic HTTPS, and more. Once configured, your projects will be deployed to Cloudflare's edge network.

What if my API Token permissions are insufficient?

Ensure your token includes Edit permissions for Cloudflare Pages. We recommend using the "Edit Cloudflare Workers" template when creating the token.

What if deployment fails?

Verify your Account ID and API Token are correct. Ensure the token hasn't expired and has sufficient permissions. Check deployment logs for detailed error messages.