Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment Declaration

Environment bindings are an easy way to declare, manage, reference and inject Cloudflare Workers bindings across your application.

Currently, Cloesce supports D1, KV, R2, Durable Objects, and custom Wrangler Environment Variables.

Tip

Any top level declaration in Cloesce is global across any file in the project. This means that environment bindings declared in one file can be referenced and used in any other file.

Tip

Environment bindings can be injected to any API implementation via the [inject] tag.