CLI
sandbox
Reset database and run a development scenario
What it does
Resets your development database, runs all migrations, regenerates types, and populates data in this order:
- Drop and recreate the database
- Apply all migrations
- Run
damian generate - Run all
corepopulators (automatic, no prompt) - Prompt you to choose a single
sandboxpopulator
Gives you a clean, deterministic state for local development.
Run
npx damian sandboxpnpm damian sandboxyarn damian sandboxPopulator groups
Sandbox uses special meanings for populator groups:
core-./damian/populators/core/*.populator.tsruns automatically before anything else. Typically seeds reference data all scenarios need.sandbox-./damian/populators/sandbox/*.populator.tsrepresents different scenarios. You pick exactly one.
See the populate page for writing populators.