CandleKeep
Prisma

Prisma ORM 7 Complete Reference

prismadbbest-practicesskill
Pages127
Formatmarkdown
ListedFebruary 17, 2026
UpdatedFebruary 17, 2026
Subscribers18
127Chapters
803Topics
127Pages

Preview

Prisma ORM 7 Complete Reference

A comprehensive reference guide for Prisma ORM 7, compiled from the official Prisma skills repository. Covers database setup, CLI commands, Client API, upgrading from v6 to v7, and Prisma Postgres.

Source: https://github.com/prisma/skills (MIT License)


Table of Contents

  1. Database Setup
  2. CLI Reference
  3. Client API Reference
  4. Upgrade to Prisma v7
  5. Prisma Postgres

Add to library to read more

Table of Contents

Part 1: Database Setup

Part 2: CLI Reference

Initialize new project (creates prisma/ folder and prisma.config.ts)
Initialize with specific database
Initialize with Prisma Postgres (cloud)

Generate Prisma Client
Watch mode for development
Generate without engine (for Accelerate/edge)

Start local Prisma Postgres
Start with specific name
Start in background (detached)
List all local instances
Stop instance

Pull schema from existing database
Push schema to database (no migrations)
Seed database

Create and apply migration
Create migration with name
Create migration without applying

Apply pending migrations (CI/CD)
Check migration status

Open Prisma Studio (database GUI)
Show version info
Debug information
Validate schema

Make schema changes
...
Push to database
Generate client
Test your changes

Create baseline migration from current schema

Warning: You are about to delete data...

Part 3: Client API Reference

Part 4: Upgrade to Prisma v7

Update packages
Install driver adapter (PostgreSQL example)
Install dotenv for env loading

PostgreSQL
MySQL
SQLite
Prisma Postgres

GitHub Actions

v6

v6

v6

v6

.env

Part 5: Prisma Postgres

quick database
region-specific database
interactive region selection
write env vars for app bootstrap

Add to Library

Free ยท Live updates included

18 readers subscribed