Configuration explorer·续5
</details>
<details>
<summary>compatibilityDate: "<COMPATIBILITY_DATE>", (compatibilityDate reference)</summary>
<code>compatibilityDate</code>Required<a href="#config-reference-exports-workerconfig-compatibilitydate">Link to compatibilityDate</a>
<code>compatibilityDate: string</code>
A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used. More details at <a href="https://developers.cloudflare.com/workers/configuration/compatibility-dates">https://developers.cloudflare.com/workers/configuration/compatibility-dates</a>
</details>
<details>
<summary>exports: { (exports reference)</summary>
<code>exports</code>Optional<a href="#config-reference-exports-workerconfig-exports">Link to exports</a>
<code>exports?: Record<string, Export></code>
Configuration for named exports declared by the Worker. Each entry's key is the exported class name; the value configures the export. - Construct entries with <code>exports.durableObject(...)</code>. - Declares Durable Object classes exported from this Worker. For more information about Durable Objects, see the documentation at <a href="https://developers.cloudflare.com/workers/learning/using-durable-objects">https://developers.cloudflare.com/workers/learning/using-durable-objects</a>. For reference, see <a href="https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects">https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects</a>. - Construct entries with <code>exports.workflow(...)</code>. - Declares Workflows defined by this Worker. For more information about Workflows, see the documentation at <a href="https://developers.cloudflare.com/workflows/">https://developers.cloudflare.com/workflows/</a>.
</details>
<details>
<summary>LiveClass: exports.durableObject({ (durableObject reference)</summary>
<code>durableObject</code>Builder<a href="#config-reference-exports-exports-durableobject-created">Link to durableObject</a>
<code>durableObject<TContainer extends ContainerDefinition | undefined = undefined>(options: DurableObjectCreatedExportOptions<TContainer>): DurableObjectCreatedExport<TContainer>;</code>
Declares a Durable Object class defined by this Worker. For more information about Durable Objects, see the documentation at <a href="https://developers.cloudflare.com/workers/learning/using-durable-objects">https://developers.cloudflare.com/workers/learning/using-durable-objects</a> For reference, see <a href="https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects">https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects</a>
<details>
<summary>Options (4)</summary>
<dl>
<dt><code>state?: "created"</code></dt> <dd></dd>
<dt><code>storage: "sqlite"</code></dt> <dd>Selects the SQLite-backed storage engine (recommended for new classes).</dd>
<dt><code>container?: TContainer</code></dt> <dd>Attach a Container application to this Durable Object by config reference.</dd>
<dt><code>storage: "legacy-kv"</code></dt> <dd>Selects the legacy key-value storage engine.</dd></dl></details>
</details>
<details>
<summary>storage: "sqlite", (storage reference)</summary>
<code>storage</code>Required<a href="#config-reference-exports-exports-durableobject-created-storage">Link to storage</a>
<code>storage: "sqlite"</code>
Selects the SQLite-backed storage engine (recommended for new classes).
</details>
}),
<details>
<summary>RemovedClass: exports.durableObject({ (durableObject reference)</summary>
<code>durableObject</code>Builder<a href="#config-reference-exports-exports-durableobject-deleted">Link to durableObject</a>
<code>durableObject(options: DurableObjectDeletedExportOptions): DurableObjectDeletedExport;</code>
Retire a provisioned Durable Object namespace whose class has been removed from code.
<details>
<summary>Options (1)</summary>
<dl>
<dt><code>state: "deleted"</code></dt> <dd></dd>
</dl></details>
</details>
<details>
<summary>state: "deleted", (state reference)</summary>
<code>state</code>Required<a href="#config-reference-exports-exports-durableobject-deleted-state">Link to state</a>
<code>state: "deleted"</code>
The type definition does not include a description.
</details>
}),
<details>
<summary>OldClass: exports.durableObject({ (durableObject reference)</summary>
<code>durableObject</code>Builder<a href="#config-reference-exports-exports-durableobject-renamed">Link to durableObject</a>
<code>durableObject(options: DurableObjectRenamedExportOptions): DurableObjectRenamedExport;</code>
Rename a provisioned Durable Object namespace's class.
<details>
<summary>Options (2)</summary>
<dl>
<dt><code>state: "renamed"</code></dt> <dd></dd>
<dt><code>renamedTo: string</code></dt> <dd>The destination class name. Must be a valid JavaScript identifier and must appear as a live (<code>state: "created"</code>) <code>durableObject</code> entry in the same <code>exports</code> map.</dd></dl></details>
</details>
<details>
<summary>state: "renamed", (state reference)</summary>
<code>state</code>Required<a href="#config-reference-exports-exports-durableobject-renamed-state">Link to state</a>
<code>state: "renamed"</code>
The type definition does not include a description.
</details>
<details>
<summary>renamedTo: "NewClass", (renamedTo reference)</summary>
<code>renamedTo</code>Required<a href="#config-reference-exports-exports-durableobject-renamed-renamedto">Link to renamedTo</a>
<code>renamedTo: string</code>
The destination class name. Must be a valid JavaScript identifier and must appear as a live (<code>state: "created"</code>) <code>durableObject</code> entry in the same <code>exports</code> map.
</details>
}),
<details>
<summary>OutgoingClass: exports.durableObject({ (durableObject reference)</summary>
<code>durableObject</code>Builder<a href="#config-reference-exports-exports-durableobject-transferred">Link to durableObject</a>
<code>durableObject(options: DurableObjectTransferredExportOptions): DurableObjectTransferredExport;</code>
Transfer ownership of a Durable Object namespace to another Worker in the same account.
<details>
<summary>Options (2)</summary>
<dl>
<dt><code>state: "transferred"</code></dt> <dd></dd>
<dt><code>transferredTo: string</code></dt> <dd>The destination Worker. Must reference a Worker in the same account.</dd></dl></details>
</details>
<details>
<summary>state: "transferred", (state reference)</summary>
<code>state</code>Required<a href="#config-reference-exports-exports-durableobject-transferred-state">Link to state</a>
<code>state: "transferred"</code>
The type definition does not include a description.
</details>
<details>
<summary>transferredTo: "target-worker", (transferredTo reference)</summary>
<code>transferredTo</code>Required<a href="#config-reference-exports-exports-durableobject-transferred-transferredto">Link to transferredTo</a>
<code>transferredTo: string</code>
The destination Worker. Must reference a Worker in the same account.
</details>
}),
<details>
<summary>IncomingClass: exports.durableObject({ (durableObject reference)</summary>
<code>durableObject</code>Builder<a href="#config-reference-exports-exports-durableobject-expecting-transfer">Link to durableObject</a>
<code>durableObject<TContainer extends ContainerDefinition | undefined = undefined>(options: DurableObjectExpectingTransferExportOptions<TContainer>): DurableObjectExpectingTransferExport<TContainer>;</code>
Prepare to receive cross-Worker Durable Object transfer. The source Worker must follow up with a deployment containing a <code>transferred</code> export to commit the transfer.
<details>
<summary>Options (5)</summary>
<dl>
<dt><code>state: "expecting-transfer"</code></dt> <dd></dd>
<dt><code>transferFrom: string</code></dt> <dd>The source Worker for the two-phase cross-Worker transfer.</dd>
<dt><code>storage: "sqlite"</code></dt> <dd>Selects the SQLite-backed storage engine (recommended for new classes).</dd>
<dt><code>container?: TContainer</code></dt> <dd>Attach a Container application to this Durable Object by config reference.</dd>
<dt><code>storage: "legacy-kv"</code></dt> <dd>Selects the legacy key-value storage engine.</dd></dl></details>
</details>
<details>
<summary>state: "expecting-transfer", (state reference)</summary>
<code>state</code>Required<a href="#config-reference-exports-exports-durableobject-expecting-transfer-state">Link to state</a>
<code>state: "expecting-transfer"</code>
The type definition does not include a description.
</details>
<details>
<summary>storage: "sqlite", (storage reference)</summary>
<code>storage</code>Required<a href="#config-reference-exports-exports-durableobject-expecting-transfer-storage">Link to storage</a>
<code>storage: "sqlite"</code>
Selects the SQLite-backed storage engine (recommended for new classes).
</details>
<details>
<summary>transferFrom: "source-worker", (transferFrom reference)</summary>
<code>transferFrom</code>Required<a href="#config-reference-exports-exports-durableobject-expecting-transfer-transferfrom">Link to transferFrom</a>
<code>transferFrom: string</code>
The source Worker for the two-phase cross-Worker transfer.
</details>
}),
<details>
<summary>ApiEntrypoint: exports.worker({ (worker reference)</summary>
<code>worker</code>Builder<a href="#config-reference-exports-exports-worker-default">Link to worker</a>
<code>worker(options?: WorkerEntrypointExportOptions): WorkerEntrypointExport;</code>
Declares a WorkerEntrypoint export defined by this Worker.
<details>
<summary>Options (1)</summary>
<dl>
<dt><code>cache?: { /* Whether cache is enabled for this entrypoint. / enabled: boolean; }</code></dt> <dd></dd>
</dl></details>
</details>
<details>
<summary>cache: { (cache reference)</summary>
<code>cache</code>Optional<a href="#config-reference-exports-exports-worker-default-cache">Link to cache</a>
<code>cache?: { /* Whether cache is enabled for this entrypoint. / enabled: boolean; }</code>
The type definition does not include a description.
</details>
<details>
<summary>enabled: true, (enabled reference)</summary>
<code>enabled</code>Required<a href="#config-reference-exports-exports-worker-default-cache-enabled">Link to enabled</a>
<code>enabled: boolean</code>
Whether cache is enabled for this entrypoint.
</details>
},
}),
<details>
<summary>CheckoutWorkflow: exports.workflow({ (workflow reference)</summary>
<code>workflow</code>Builder<a href="#config-reference-exports-exports-workflow-default">Link to workflow</a>
<code>workflow(options: WorkflowExportOptions): WorkflowExport;</code>
Declares a Workflow defined by this Worker. The export's key must name a class that extends <code>WorkflowEntrypoint</code>. For more information about Workflows, see the documentation at <a href="https://developers.cloudflare.com/workflows/">https://developers.cloudflare.com/workflows/</a>
<details>
<summary>Options (5)</summary>
<dl>
<dt><code>name: string</code></dt> <dd>The name of the Workflow. It identifies the Workflow's instances and must be unique within the account.</dd>
<dt><code>limits?: { /* Maximum number of steps a single Workflow instance may run. / steps?: number; }</code></dt> <dd></dd>
<dt><code>concurrency?: { /* Maximum number of Workflow instances that can run concurrently. / limit?: number; }</code></dt> <dd></dd>
<dt><code>schedules?: string | string[]</code></dt> <dd>Cron schedule(s) that automatically trigger Workflow instances.</dd>
<dt><code>defaultRetention?: { / How long to retain instances that completed successfully or were terminated. */ successRetention?: number | string; / How long to retain errored instances. */ errorRetention?: number | string; }</code></dt> <dd>Default retention for instances of this Workflow, applied when an instance does not set its own retention. Accepts milliseconds or a duration string such as <code>"3 days"</code>.</dd>
</dl></details>
</details>
<details>
<summary>name: "checkout-workflow", (name reference)</summary>
<code>name</code>Required<a href="#config-reference-exports-exports-workflow-default-name">Link to name</a>
<code>name: string</code>
The name of the Workflow. It identifies the Workflow's instances and must be unique within the account.
</details>
<details>
<summary>limits: { (limits reference)</summary>
<code>limits</code>Optional<a href="#config-reference-exports-exports-workflow-default-limits">Link to limits</a>
<code>limits?: { /* Maximum number of steps a single Workflow instance may run. / steps?: number; }</code>
The type definition does not include a description.
</details>
<details>
<summary>steps: 100, (steps reference)</summary>
<code>steps</code>Optional<a href="#config-reference-exports-exports-workflow-default-limits-steps">Link to steps</a>
<code>steps?: number</code>
Maximum number of steps a single Workflow instance may run.
</details>
},
}),
},
},
});
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cf/projects/config-explorer/#page","headline":"Configuration explorer","description":"See how cloudflare.config.ts describes each part of an application, and what each typed field means.","url":"https://developers.cloudflare.com/cf/projects/config-explorer/","inLanguage":"en","image":"https://developers.cloudflare.com/cf/projects/config-explorer/og.png?v=8877be631a13b653","dateModified":"2026-09-29","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Set up the Cloudflare CLI for coding agents, and help agents find, inspect, and safely run the right commands. title: Use cf with coding agents image: https://developers.cloudflare.com/cf/agents/og.png?v=99988aee6616b803
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cf/llms.txt
Use this file to discover all available pages before exploring further.
Docs