To confirm: do you mean the DB and
To confirm: do you mean the DB and contents, or just the schema?
5 Replies
Just the schema would be fine.
This will be available soon as a wrangler CLI command
Awesome, perfect.
Was this https://developers.cloudflare.com/d1/build-with-d1/import-data/#export-an-existing-d1-database @Vy or is there something else planned?
Cloudflare Docs
Import data · Cloudflare D1 docs
D1 allows you to import existing SQLite tables and their data directly, enabling you to migrate existing data into D1 quickly and easily. This can be …
those are the right docs, you can run
npx wrangler d1 export <database_name> --remote --output=./schema.sql --no-data=true