If you want an easy way to develop, I can recommend Planetscale which has a very generous free tier. It's a mysql db service that has branches like your code. That means you can develop code locally, run prisma db push and then merge the dev branch of your db into prod when you want. Answer from Deleted User on reddit.com
🌐
Prisma
prisma.io › home › dev › dev › dev
prisma migrate dev | Create & Apply Migrations | Prisma Documentation
The prisma migrate dev command creates and applies migrations during development.
🌐
Prisma
prisma.io › home › development and production › development and production › development and production › development and production
Development and production | Prisma Documentation
The --create-only command allows you to create a migration without applying it: ... To apply the edited migration, run prisma migrate dev again.
Discussions

Command `npx prisma migrate dev` failing with no error messages
Bug description Well, i started a project here and i was trying to set up my first table on my schema I have already used Prisma in the past and worked fine, but today, on the latest version, it... More on github.com
🌐 github.com
10
May 28, 2024
Where do you actually run prisma migrate deploy?
If you want an easy way to develop, I can recommend Planetscale which has a very generous free tier. It's a mysql db service that has branches like your code. That means you can develop code locally, run prisma db push and then merge the dev branch of your db into prod when you want. More on reddit.com
🌐 r/node
18
4
December 11, 2022
`npx prisma migrate dev` hangs up
Bug description When running the command npx prisma migrate dev, it hands up after returning the following message: Environment variables loaded from .env Prisma schema loaded from prisma/schema.pr... More on github.com
🌐 github.com
19
January 16, 2023
migration - Error: "migrate dev is not a prisma command." when calling `npx prisma migrate dev --preview-feature` - Stack Overflow
When I run the following command: npx prisma migrate dev --preview-feature I get the following error: $ npx prisma migrate dev --preview-feature npx: installed 600 in 26.334s ▸ migrate dev is ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Prisma
prisma.io › home › prisma cli reference › prisma cli reference › prisma cli reference
Prisma CLI reference | Prisma Documentation
CREATE NEW DATABASE: Local: npx prisma dev (runs Postgres locally in your terminal) Cloud: npx create-db (creates a free Prisma Postgres database) Then, define your models in `prisma/schema.prisma` and run `npx prisma migrate dev` to apply your ...
🌐
GitHub
github.com › prisma › prisma › discussions › 24571
How should migration be done to Production? · prisma/prisma · Discussion #24571
Generate and Apply Migrations: Use the prisma migrate dev command to generate and apply migrations during development with npx prisma migrate dev.
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 24305
Command `npx prisma migrate dev` failing with no error messages · Issue #24305 · prisma/prisma
May 28, 2024 - For some reason, i cannot run my npx prisma migrate dev, but the error is empty, so i can't search for the errors properly to find a solution. This is what comes from my npx prisma -v command: prisma : 5.14.0 @prisma/client : Not found Computed binaryTarget : debian-openssl-1.1.x Operating System : linux Architecture : x64 Node.js : v20.13.1 Query Engine (Node-API) : libquery-engine e9771e62de70f79a5e1c604a2d7c8e2a0a874b48 (at node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node) Schema Engine : schema-engine-cli e9771e62de70f79a5e1c604a2d7c8e2a0a874b48 (at node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x) Schema Wasm : @prisma/prisma-schema-wasm 5.14.0-25.e9771e62de70f79a5e1c604a2d7c8e2a0a874b48 Default Engines Hash : e9771e62de70f79a5e1c604a2d7c8e2a0a874b48 Studio : 0.500.0 ·
Author   prisma
🌐
Kitemetric
kitemetric.com › blogs › mastering-prisma-migrations-dev-vs-deploy
Mastering Prisma Migrations: Dev vs. Deploy | Kite Metric
npx prisma generate · This updates the Prisma Client. To synchronize the database, we use Prisma's migration commands. For local development, prisma migrate dev is ideal. It performs these steps: Schema Drift Detection: Compares your schema.prisma with the database.
Find elsewhere
🌐
Reddit
reddit.com › r/node › where do you actually run prisma migrate deploy?
r/node on Reddit: Where do you actually run prisma migrate deploy?
December 11, 2022 -

I'm working on a little project with supabase and prisma, I've just been using one dev database which I update with prisma migrate dev. For production migrations, you're supposed to use prisma migrate deploy, which the prisma docs say to put in a CI/CD pipeline.

  • I don't have a CI/CD pipeline

  • I can't run it locally from my project directory, cause prisma uses the DATABASE_URL environment, which is pointing to my dev database

So I'm wondering where y'all would actually run prisma migrate deploy from? Should I just bite the bullet and learn some github actions? Or is there an easier way?

EDIT: The prisma docs recommend using dotenv-cli to use switch between .env files, but I'm kinda worried that I might fuck up somehow and end up running prisma migrate reset on my prod database, and delete everything. But, seems like that might be my plan until I figure out some CI/CD stuff.

Still definitely open to any advice though!

🌐
Nile
thenile.dev › get started › schema migrations › prisma
Prisma - Nile Documentation
December 8, 2025 - Because Nile has a built-in tenants ... our own tables. ... mkdir -p prisma/migrations/0_init npx prisma migrate diff \ --from-empty \ --to-schema-datamodel prisma/schema.prisma \ --script > prisma/migrations/0_init/migrati...
🌐
Medium
medium.com › @bryantbrock › data-migrations-with-prisma-94909cb0c0c0
Data migrations with Prisma. For production applications (and… | by Bryant Brock | Medium
December 19, 2023 - export const moveUserFirstAndL... the script is run that save data to just the old columns). First run the npx prisma migrate deploycommand (should be setup in your build scripts before the new code is deployed live) and ...
🌐
GitHub
github.com › prisma › prisma › issues › 17338
`npx prisma migrate dev` hangs up · Issue #17338 · prisma/prisma
January 16, 2023 - Bug description When running the command npx prisma migrate dev, it hands up after returning the following message: Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL databas...
Author   prisma
🌐
Prisma
prisma.io › home › patching & hotfixing › patching & hotfixing › patching & hotfixing › patching & hotfixing
Patching & hotfixing | Prisma Documentation
You then decide to make changes to your data model, adding another Post model and making the name field on User unique: ... You create a migration called 'Unique' with the command npx prisma migrate dev -n Unique which is saved in your local ...
🌐
DEV Community
dev.to › whoffagents › prisma-migrations-in-production-zero-downtime-strategies-and-rollback-patterns-3nf1
Prisma Migrations in Production: Zero-Downtime Strategies and Rollback Patterns - DEV Community
April 9, 2026 - # Development: create migration from schema changes npx prisma migrate dev --name add_display_name # Preview what will run in production npx prisma migrate status # Production: apply pending migrations npx prisma migrate deploy
🌐
LogRocket
blog.logrocket.com › home › effortless database schema migration with prisma
Effortless database schema migration with Prisma - LogRocket Blog
June 4, 2024 - Once again, all we need to do is run the following command in the terminal, and Prisma Migrate automatically syncs these changes with the database: npx prisma migrate dev --name connect_users_posts_tables
🌐
Prisma
prisma.io › home › deploying database changes with prisma migrate › deploying database changes with prisma migrate › deploying database changes with prisma migrate › deploying database changes with prisma migrate
Deploying database changes with Prisma Migrate | Prisma Documentation
Beware that in order to run the prisma migrate deploy command, you need access to the prisma dependency that is typically added to the devDependencies. Some platforms like Vercel, prune development dependencies during the build, thereby preventing ...