
Prisma Cli Migrate Reset
- 14 installs
- 8 repo stars
- Updated February 9, 2026
- prisma/cursor-plugin
prisma-cli-migrate-reset drops data and reapplies all Prisma migrations.
About
The prisma-cli-migrate-reset skill documents prisma migrate reset destroying all data, recreating the database, reapplying every migration in prisma/migrations, and running configured seed scripts. --force skips interactive confirmation for CI or automation. Custom schema paths supported via --schema. v7 may require separate prisma generate after reset unlike v6 auto-generate behavior, while seed still runs when configured in prisma.config.ts migrations.seed. Use for dev fresh starts, pre-test database cleanup, or recovering from unrecoverable drift. Warns that all data is lost. Pairs with db seed for repeatable fixtures after destructive reset. Drops database and reapplies all migration files. Runs configured seed script after migrations by default. --force skips confirmation for automation. v7 may need separate prisma generate afterward. Intended for development and test resets only. Clean database with migrations and seed reapplied. User resets dev DB after migration experiments or drift.
- Drops database and reapplies all migration files.
- Runs configured seed script after migrations by default.
- --force skips confirmation for automation.
- v7 may need separate prisma generate afterward.
- Intended for development and test resets only.
Prisma Cli Migrate Reset by the numbers
- 14 all-time installs (skills.sh)
- Ranked #604 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
prisma-cli-migrate-reset capabilities & compatibility
- Capabilities
- reset step sequence · v7 generate behavior note · seed configuration after reset
- Use cases
- database · testing
What prisma-cli-migrate-reset says it does
All data will be lost
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-resetAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 14 |
|---|---|
| repo stars | ★ 8 |
| Last updated | February 9, 2026 |
| Repository | prisma/cursor-plugin ↗ |
How do I reset my Prisma development database?
Reset the development database by dropping data, reapplying migrations, and running seed scripts.
Who is it for?
Developers needing fresh dev or test databases.
Skip if: Never run against production databases.
When should I use this skill?
User resets dev DB after migration experiments or drift.
What you get
Clean database with migrations and seed reapplied.
Files
prisma migrate reset
Resets your database and re-applies all migrations.
Command
prisma migrate reset [options]What It Does
1. Drops the database (if possible) or deletes all data/tables 2. Re-creates the database 3. Applies all migrations from prisma/migrations/ 4. Runs the seed script (if configured)
Warning: All data will be lost.
Options
| Option | Description |
|---|---|
--force / -f | Skip confirmation prompt |
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
Examples
Basic reset
prisma migrate resetPrompts for confirmation in interactive terminals.
Force reset (CI/Automation)
prisma migrate reset --forceWith custom schema
prisma migrate reset --schema=./custom/schema.prismaWhen to Use
- Development: When you want a fresh start
- Testing: Resetting test database before suites
- Drift Recovery: When the database is out of sync and you can't migrate
Behavior in v7
- In v6,
migrate resetautomatically ranprisma generate. - In v7, you may need to run
prisma generateseparately if you want to update the client, thoughresetfocuses on the database state. - Seed script IS run by default after reset.
Configuration
Configure seed script in prisma.config.ts to run it automatically after reset:
export default defineConfig({
migrations: {
seed: 'tsx prisma/seed.ts',
},
}){
"name": "prisma-cli-migrate-reset",
"version": "7.0.0",
"author": "prisma",
"license": "MIT"
}Related skills
FAQ
What does prisma-cli-migrate-reset do?
prisma-cli-migrate-reset drops data and reapplies all Prisma migrations.
When should I use prisma-cli-migrate-reset?
User resets dev DB after migration experiments or drift.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.