Install and Initialize Prisma in Prisma

From the Prisma ORM cheat sheet ยท Setup ยท verified Nov 2026

Install and Initialize Prisma

Add Prisma 7 to a Node.js project and initialize a SQLite schema.

bash
npm install --save-dev prisma@7
npm install @prisma/client@7 @prisma/adapter-better-sqlite3@7 dotenv
npx prisma init --datasource-provider sqlite
๐Ÿ“Œ Prisma 7 requires Node.js 20.19, 22.12, or 24 and newer compatible releases
๐Ÿ’ก prisma is the CLI and @prisma/client is the generated query client
๐Ÿ” prisma init creates prisma/schema.prisma, the config file (prisma7.config.ts on 7.10+), .env and .gitignore
โš ๏ธ Direct database connections require the matching driver adapter in Prisma 7
installinitprisma-clisqlite

Continue with Prisma ORM

Save the full cheat sheet or work through every related task.

Back to the full Prisma ORM cheat sheet