1.0.1 • Published 11 months ago

cloudflare-sync v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

This is a CLI tool to synchronise a local directory with Cloudflare Images.

Features

  • Syncs an entire directory, rather that 1 file at a time.
  • Skips files already uploaded.
  • Uses the relative filepath as the image ID, so the final CDN URLs are predictable.

Installation

npm install -g cloudflare-sync

Usage

Ensure you have a CLOUDFLARE_API_TOKEN environment variable set. Then use the CLI:

npx cloudflare-sync --source ./public --account c495ed7f42a6ac8cb22cc3b822a684cb --ext jpg,png
1.0.1

11 months ago

1.0.0

11 months ago