with one click
prisma-cli-migrate-reset
prisma migrate reset
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
prisma migrate reset
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
prisma db execute. Reference when using this Prisma feature.
prisma db pull. Reference when using this Prisma feature.
prisma db push. Reference when using this Prisma feature.
prisma db seed. Reference when using this Prisma feature.
prisma debug. Reference when using this Prisma feature.
prisma dev. Reference when using this Prisma feature.
| name | prisma-cli-migrate-reset |
| description | prisma migrate reset |
| license | MIT |
| metadata | {"author":"prisma","version":"7.0.0"} |
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',
},
})