0.1.14 • Published 3 months ago

deployment-delete v0.1.14

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
3 months ago

DeploymentDelete ♻️

Deletes any Cloudflare deployment older than 7 days. \ https://developers.cloudflare.com/api/operations/pages-deployment-delete-deployment

Installation

npm install -g deployment-delete

CLI Usage

DeploymentDelete -e example@account.com -i accountId -k accountKey

Note

This will not delete your last running deployment.

Options

-V, --version output the version number
-e, --Email Account E-mail. < Email > Cloudflare
-i, --ID Account ID. < ID > Cloudflare
-k, --Key API key. < Key > Cloudflare
-h, --help display help for command

Worker

You can also publish it as a worker:

wrangler deploy

Deploy to Cloudflare Workers

Script

Source/Index.ts

await(await import("deployment-delete"))(Email, ID, Key);

.env

Email="example@account.com"
ID="accountId"
Key="accountKey"

Changelog

See CHANGELOG.md for a history of changes to this utility.

0.1.14

3 months ago

0.1.13

8 months ago

0.1.12

8 months ago