Generated using TypeDoc
The function Deployment
makes an asynchronous request to the Cloudflare API to retrieve deployment
+information for a specific project.
The ID
parameter is a string that represents the Cloudflare account ID. It is
+used to identify the Cloudflare account for which the deployment is being made.
The Project
parameter is a string that represents the project ID or
+name. It is used to specify the project for which you want to retrieve the deployments.
The Header
parameter is an object that represents the headers to be
+included in the HTTP request. It should be of type HeadersInit
, which is a type alias for Headers | string[][] | Record<string, string>
.
Generated using TypeDoc
The function Project
makes an asynchronous request to the Cloudflare API to fetch a
+list of projects associated with a given account ID, using the provided headers.
The ID parameter is a string that represents the account ID for +the Cloudflare API. It is used to specify which account's projects you want to +retrieve.
+The Header
parameter is an object that represents the
+headers to be included in the HTTP request. It should be of type HeadersInit
, which
+is a type alias for an object that can be used to initialize a Headers
object. The
+headers can include information such as authentication tokens, content
Generated using TypeDoc
The function Response
is an asynchronous function that returns a response object with a JSON
+stringified message and a specified status code.
Optional
Message: unknownThe Message
parameter is the data that you want to send as a
+response. It can be of any type, but it will be converted to a JSON string before being sent.
Optional
Status: numberThe Status
parameter is an optional parameter that specifies the HTTP status
+code of the response. If no value is provided, it defaults to 200 (OK).
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Delete stale Cloudflare Pages deployment.
https://developers.cloudflare.com/api/operations/pages-@playform/delete-deployment
npm install -g @playform/delete
+
+DeleteDeployment -e example@account.com -i accountId -k accountKey
+
+++Note
+This will not delete your last running deployment.
+
-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
+
+You can also publish it as a worker:
+wrangler deploy
+
+
+Source/Index.ts
await(await import("@playform/delete"))(Email, ID, Key);
+
+.env
Email="example@account.com"
+ID="accountId"
+Key="accountKey"
+
+See CHANGELOG.md for a history of changes to this utility.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
biome-ignore lint/suspicious/noExplicitAny:
+Generated using TypeDoc
Optional
Email?: stringOptional
ID?: stringOptional
Key?: stringGenerated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Optional
Email?: stringOptional
ID?: stringOptional
Key?: stringGenerated using TypeDoc
@TODO: Find a way to use await in parameters
+