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

Prisma Cli Db Push

  • 17 installs
  • 8 repo stars
  • Updated February 9, 2026
  • prisma/cursor-plugin

prisma-cli-db-push syncs Prisma schema to the database without migrations.

About

The prisma-cli-db-push skill documents prisma db push for syncing Prisma schema directly to the database without creating migration files or tracking history. It creates the database if missing, supports --accept-data-loss for destructive changes, and --force-reset for full resets. Prisma v7 requires running prisma generate explicitly after push since --skip-generate was removed. Use cases include prototyping, local development, MongoDB workflows where migrations are unsupported, and test database setup. The skill warns against production use when migration history and rollback matter, recommending prisma migrate for team environments. Examples cover basic push, data-loss acceptance, force reset, and the v7 full workflow pairing push with generate. Options table documents --schema, --config, and --url overrides for non-default project layouts. Pushes schema changes directly to database without creating migrations. Ideal for prototyping. Completely resets database and applies schema.

  • Syncs Prisma schema to database without migration files.
  • Supports accept-data-loss and force-reset options.
  • Requires explicit prisma generate in Prisma v7.
  • Ideal for prototyping, local dev, and MongoDB.
  • Documents when migrate is preferred over push.

Prisma Cli Db Push by the numbers

  • 17 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #575 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

prisma-cli-db-push capabilities & compatibility

Capabilities
db push command options table · when to use versus when not to use · v7 generate workflow
Works with
postgres · mysql · mongodb
Use cases
database · api development
IDEs
vscode · cursor ide
From the docs

What prisma-cli-db-push says it does

Pushes schema changes directly to database without creating migrations
SKILL.md
prisma generate # Must run explicitly in v7
SKILL.md
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-db-push

Add your badge

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

Listed on Skillselion
Installs17
repo stars8
Last updatedFebruary 9, 2026
Repositoryprisma/cursor-plugin

When should I use prisma db push instead of migrate?

Push Prisma schema changes to the database without creating migration files.

Who is it for?

Developers prototyping Prisma schemas locally or on MongoDB.

Skip if: Skip for production schema changes requiring migration history.

When should I use this skill?

User references prisma db push or rapid schema prototyping.

What you get

Database schema matching Prisma schema with generated client.

Files

SKILL.mdMarkdownGitHub ↗

prisma db push

Pushes schema changes directly to database without creating migrations. Ideal for prototyping.

Command

prisma db push [options]

What It Does

  • Syncs your Prisma schema to the database
  • Creates database if it doesn't exist
  • Does NOT create migration files
  • Does NOT track migration history

Options

OptionDescription
--force-resetForce a reset of the database before push
--accept-data-lossIgnore data loss warnings
--schemaCustom path to your Prisma schema
--configCustom path to your Prisma config file
--urlOverride the datasource URL from the Prisma config file

Removed in v7

  • --skip-generate - Run prisma generate explicitly

Examples

Basic push

prisma db push

Accept data loss

prisma db push --accept-data-loss

Required when changes would delete data (dropping columns, etc.)

Force reset

prisma db push --force-reset

Completely resets database and applies schema.

Full workflow (v7)

prisma db push
prisma generate  # Must run explicitly in v7

When to Use

  • Prototyping - Rapid schema iteration
  • Local development - Quick schema changes
  • MongoDB - Primary workflow (migrations not supported)
  • Testing - Setting up test databases

When NOT to Use

  • Production - Use migrate deploy
  • Team collaboration - Use migrations for trackable changes
  • When you need rollback - Migrations provide history

Comparison with migrate dev

Featuredb pushmigrate dev
Creates migration filesNoYes
Tracks historyNoYes
Requires shadow databaseNoYes
SpeedFasterSlower
Rollback capabilityNoYes
Best forPrototypingDevelopment

MongoDB Workflow

MongoDB doesn't support migrations. Use db push exclusively:

# Schema changes for MongoDB
prisma db push
prisma generate

Common Patterns

Prototyping workflow

# Make schema changes
# ...

# Push to database
prisma db push

# Generate client
prisma generate

# Test your changes
# Repeat as needed

Reset and start fresh

prisma db push --force-reset
prisma db seed

Handling conflicts

If db push can't apply changes safely:

Error: The following changes cannot be applied:
  - Removing field `email` would cause data loss
  
Use --accept-data-loss to proceed

Decide whether data loss is acceptable, then:

prisma db push --accept-data-loss

Transition to Migrations

When ready for production, switch to migrations:

# Create baseline migration from current schema
prisma migrate dev --name init

Then use migrate dev for future changes.

Related skills

FAQ

What does prisma-cli-db-push do?

prisma-cli-db-push syncs Prisma schema to the database without migrations.

When should I use prisma-cli-db-push?

User references prisma db push or rapid schema prototyping.

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.