Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prisma avatar

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)
At a glance

prisma-cli-migrate-reset capabilities & compatibility

Capabilities
reset step sequence · v7 generate behavior note · seed configuration after reset
Use cases
database · testing
From the docs

What prisma-cli-migrate-reset says it does

All data will be lost
SKILL.md
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-migrate-reset

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14
repo stars8
Last updatedFebruary 9, 2026
Repositoryprisma/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

SKILL.mdMarkdownGitHub ↗

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

OptionDescription
--force / -fSkip confirmation prompt
--schemaPath to schema file
--configCustom path to your Prisma config file

Examples

Basic reset

prisma migrate reset

Prompts for confirmation in interactive terminals.

Force reset (CI/Automation)

prisma migrate reset --force

With custom schema

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.

Configuration

Configure seed script in prisma.config.ts to run it automatically after reset:

export default defineConfig({
  migrations: {
    seed: 'tsx prisma/seed.ts',
  },
})

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.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.