Labsco
prisma logo

prisma-cli-migrate-reset

✓ Official8

by prisma · part of prisma/cursor-plugin

prisma migrate reset

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the prisma/cursor-plugin package — works on its own, and pairs well with its siblings.

prisma migrate reset

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by prisma

prisma migrate reset npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-reset Download ZIPGitHub8

prisma migrate reset

Resets your database and re-applies all migrations.

Command

Copy & paste — that's it
prisma migrate reset [options]

What It Does

  • Drops the database (if possible) or deletes all data/tables

  • Re-creates the database

  • Applies all migrations from prisma/migrations/

  • 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

Copy & paste — that's it
prisma migrate reset

Prompts for confirmation in interactive terminals.

Force reset (CI/Automation)

Copy & paste — that's it
prisma migrate reset --force

With custom schema

Copy & paste — that's it
prisma migrate reset --schema=./custom/schema.prisma

When 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 reset automatically ran prisma generate.

  • In v7, you may need to run prisma generate separately if you want to update the client, though reset focuses on the database state.

  • Seed script IS run by default after reset.