1.1.0 • Published 8 months ago

bang-kv v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Prerequisites

Before running the script, ensure you have the following:

  • Node.js installed on your machine (version 14 or higher recommended).
  • npm (Node Package Manager) is included with Node.js.
  • Access to a Cloudflare account with KV storage enabled.

Environment Variables

The script requires three environment variables to be set:

  • ACCOUNT_ID: Your Cloudflare account ID.
  • NAMESPACE_ID: The ID of the KV namespace you wish to purge.
  • CLOUDFLARE_API_TOKEN: A Cloudflare API token with permissions to access KV storage.

Installation

pnpm i

Usage

ACCOUNT_ID=<accountId> NAMESPACE_ID=<namespaceId> CLOUDFLARE_API_TOKEN=<apiToken> npx bang
1.1.0

8 months ago

1.0.0

8 months ago