0.1.14 • Published 3 months ago
deployment-delete v0.1.14
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
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.