Skip to content

CloudflarePluginOptions

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:18

Options for the Cloudflare plugin: how the API token is resolved, the account, and test overrides.

optional accountId?: string

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:23

Cloudflare account ID. Required for Pages (deployment) operations; optional for DNS-only use.


optional baseUrl?: string

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:30

Override base URL for tests.


optional cliToken?: string

Defined in: cli/kyber/dist/secrets.d.mts:125

The --token flag.

ResolveTokenInput.cliToken


optional env?: ProcessEnv

Defined in: cli/kyber/dist/secrets.d.mts:127

The environment to read. Default process.env; a test passes its own.

ResolveTokenInput.env


optional fetch?: (input, init?) => Promise<Response>

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:32

The fetch to use instead of the global one, for tests.

string | URL | Request

RequestInit

Promise<Response>


optional keyring?: (account) => string | null

Defined in: cli/kyber/dist/secrets.d.mts:129

Looks an account up in the keyring. Replaces the configured lookup and the credential store; a test passes its own.

string

string | null

ResolveTokenInput.keyring


optional org?: string

Defined in: cli/kyber/dist/secrets.d.mts:131

The active org. It selects the keyring account <service>.<org> first. Default: the variable orgEnvName names.

ResolveTokenInput.org


optional zone?: string

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:28

The zone the organization’s own DNS lives in. The token probe reads this one zone when no zone is named on the command line; without it the probe reads the first few zones of the account.