prisma migrate reset
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-reset
Resets your database and re-applies all migrations.
prisma migrate reset [options]
prisma/migrations/Warning: All data will be lost.
| Option | Description |
|--------|-------------|
| --force / -f | Skip confirmation prompt |
| --schema | Path to schema file |
| --config | Custom path to your Prisma config file |
prisma migrate reset
Prompts for confirmation in interactive terminals.
prisma migrate reset --force
prisma migrate reset --schema=./custom/schema.prisma
migrate reset automatically ran prisma generate.prisma generate separately if you want to update the client, though reset focuses on the database state.Configure seed script in prisma.config.ts to run it automatically after reset:
export default defineConfig({
migrations: {
seed: 'tsx prisma/seed.ts',
},
})
Take prisma/prisma-cli-migrate-reset from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.