Config Files · 1 file

Sample wrangler.toml File

wrangler.toml configures Cloudflare Workers and their bindings. Our sample is realistic and valid for its tool, with fake hosts and secrets.

wrangler.toml · 561 B

wrangler.toml

A Cloudflare Workers config with compatibility settings, vars, KV, R2 and D1 bindings, routes and a cron trigger. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

wrangler.toml — first linesTOML
# Sample wrangler.toml — samplefiles.com
name = "sample-worker"
main = "src/index.ts"
compatibility_date = "2026-01-15"
compatibility_flags = ["nodejs_compat"]

routes = [{ pattern = "api.example.com/*", zone_name = "example.com" }]

[vars]
ENVIRONMENT = "production"

[[kv_namespaces]]
binding = "CACHE"
id = "00000000000000000000000000000000"

[[r2_buckets]]
binding = "FILES"
bucket_name = "sample-files"

[[d1_databases]]
binding = "DB"
database_name = "sample-db"
database_id = "00000000-0000-0000-0000-000000000000"

[triggers]

File details

Size
561 B (561 bytes)
MIME type
application/toml
SHA-256
6d49e04c38cfb51f90558318d8ab2ab65ce2920fa9e7eed82cba9935998f4590
MD5
1404ad78703ec5f855a3b15211f2828a

Download from the command line

curl -L -o wrangler.toml https://files.samplefiles.com/config/wrangler-toml/wrangler.toml

Or check the download in your browser with the checksum calculator.