Cloudflare DevelopersCD
Cloudflare Developers2y ago
2 replies
Billy

I'm trying to get my local d1 database

I'm trying to get my local d1 database from one local project to another local project, i.e., from one dir to another dir without re-running the wrangler d1 execute --local --file=.sql approach. I thought I could just move the .wrangler/state/v3/d1 dir over to another dir and spin things up but that did not work. Is there some other approach I could use?

My problem is that I use a separate worker to load portions of the database and I was hoping to avoid moving that worker and its config over to another dir temporarily to get the database fully loaded.

Thanks!
Was this page helpful?