npx prisma migrate deploy

Category: Web App Development

npx prisma migrate deploy

Apply pending migrations in production

Runs every migration in prisma/migrations that has not been applied yet, the safe command for staging and production. Unlike migrate dev it never resets data or prompts. Pair it with prisma generate afterwards to refresh the client.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.