Create a branch with production data
branches
// what it does
--seed-data uses PlanetScale's Data Branching to clone the parent branch's actual data into the new branch, not just the schema. This is how you test a risky migration or a data backfill against real-shaped data before it ever touches production.
// shell
$ pscale branch create mydb test-migration --seed-data// gotcha
The branch is provisioned with the same resources as its parent (not the tiny dev default) and billed accordingly — delete it when the experiment is done. Sensitive production data lands in a dev-grade branch, so mind your compliance rules.