Skip to main content

Install Prisma Client

Install and generate Prisma Client

To get started with Prisma Client, you need to install the @prisma/client package:

npm install @prisma/client

Notice that the @prisma/client node module references a folder named .prisma/client. The .prisma/client folder contains your generated Prisma Client, and is modified each time you change the schema and run the following command:

npx prisma generate

This command reads your Prisma schema and generates your Prisma Client library:

Install and generate Prisma Client

The @prisma/client node module references a folder named .prisma/client, which contains your unique, generated Prisma Client:

The .prisma and @prisma folders

Baseline your database

Querying the database

Baseline your database

Querying the database

Introspection

Querying the database

Baseline your database

Querying the database

Baseline your database

Querying the database

Baseline your database

Querying the database

Baseline your database

Querying the database

Introspection

Querying the database

Baseline your database

Querying the database

Baseline your database

Querying the database