
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)
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
What prisma-cli-db-push says it does
Pushes schema changes directly to database without creating migrations
prisma generate # Must run explicitly in v7
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-db-pushAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 17 |
|---|---|
| repo stars | ★ 8 |
| Last updated | February 9, 2026 |
| Repository | prisma/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
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
| Option | Description |
|---|---|
--force-reset | Force a reset of the database before push |
--accept-data-loss | Ignore data loss warnings |
--schema | Custom path to your Prisma schema |
--config | Custom path to your Prisma config file |
--url | Override the datasource URL from the Prisma config file |
Removed in v7
--skip-generate- Runprisma generateexplicitly
Examples
Basic push
prisma db pushAccept data loss
prisma db push --accept-data-lossRequired when changes would delete data (dropping columns, etc.)
Force reset
prisma db push --force-resetCompletely resets database and applies schema.
Full workflow (v7)
prisma db push
prisma generate # Must run explicitly in v7When 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
| Feature | db push | migrate dev |
|---|---|---|
| Creates migration files | No | Yes |
| Tracks history | No | Yes |
| Requires shadow database | No | Yes |
| Speed | Faster | Slower |
| Rollback capability | No | Yes |
| Best for | Prototyping | Development |
MongoDB Workflow
MongoDB doesn't support migrations. Use db push exclusively:
# Schema changes for MongoDB
prisma db push
prisma generateCommon Patterns
Prototyping workflow
# Make schema changes
# ...
# Push to database
prisma db push
# Generate client
prisma generate
# Test your changes
# Repeat as neededReset and start fresh
prisma db push --force-reset
prisma db seedHandling 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 proceedDecide whether data loss is acceptable, then:
prisma db push --accept-data-lossTransition to Migrations
When ready for production, switch to migrations:
# Create baseline migration from current schema
prisma migrate dev --name initThen use migrate dev for future changes.
{
"name": "prisma-cli-db-push",
"version": "7.0.0",
"author": "prisma",
"license": "MIT"
}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.