How to run a Cloudflare D1 database locally

· Flaviocopes · Aug. 30, 2026, 1:13 a.m.
Summary
This blog post provides a practical guide on how to run a Cloudflare D1 database locally using tools like Wrangler and Miniflare. It covers the steps to apply migrations, seed data, and manage SQLite state, while emphasizing the importance of keeping development separate from production environments.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →