0.0.8 • Published 2 months ago

cfpage v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Cloudflare page deploy

A simple for deploy Cloudflare page with custom data in .env file

⚠️ Note

I'm not cloudflared developer. I use code reference from repo workers-sdk.

Install

npm i -g cfpage

How to use

  1. Goto https://dash.cloudflare.com
  2. Goto "Account" -> "My profile" -> "API Tokens"
  3. Find "API Keys" and copy "Global API Key"
  4. Goto your current project
  5. Add .env variable this
CF_EMAIL="<YOUR_CLOUDFLARE_EMAIL>"
CF_TOKEN="<YOUR_CLOUDFLARE_TOKEN>"
CF_PROJECT_NAME="<CLOUDFLARE_PAGE_PROJECT_NAME>"

Structure .env

CF_EMAIL (REQUIRED)

For authenticate headers

CF_TOKEN (REQUIRED)

For authenticate headers

CF_PROJECT_NAME (REQUIRED)

Cloudflare page project name site

CF_BRANCH

Cloudflare page branch

Scripts

MacOSX

cfpage-mac deploy ./dist

Linux

cfpage-linux deploy ./dist (Still fixing)

Windows

cfpage-win deploy ./dist (Still fixing)

Enjoy!

IMG

0.0.8

2 months ago

0.0.5

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.1.0-alpha.1

3 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago