🌐
Prisma
prisma.io › home › generating prisma client › generating prisma client › generating prisma client › generating prisma client
Generating Prisma Client | Prisma Documentation
If you want the CLI-specific options such as --watch or --generator, see the prisma generate command reference. Import Prisma Client from the output path you configured:
🌐
Prisma
prisma.io › home › generators › generators › generators › generators
Generators (Reference) | Prisma Documentation
It generates Prisma Client into a custom directory in your application's codebase that's specified via the output field on the generator block. This gives you full visibility and control over the generated code.
Discussions

generate output relative to `node_modules/@prisma/client`
Problem In our NX-based repository. We have several libraries that can contain their own schema.prisma. The best place to then generate the prisma client is node_modules/@prisma/client/{module_name... More on github.com
🌐 github.com
6
January 6, 2023
Generating Prisma Client
generator client { provider = "prisma-client-js" output = "app/generated/prisma/client" } More on answeroverflow.com
🌐 answeroverflow.com
April 25, 2025
Prisma 7 upgrade: prisma-client has no generated input types anymore? Why is this not documented?
First, not a NextJS issue. Second, you have your config simply incorrect. Define the output directory in your client then generate it. https://www.prisma.io/docs/orm/prisma-client/type-safety More on reddit.com
🌐 r/nextjs
20
8
January 5, 2026
What are the biggest gotchas/weirdnesses of Prisma?
I wanted to use Prisma but reading about how it does joins in the client by performing multiple queries instead of letting the database handle that natively made me choose not to use it. https://github.com/prisma/prisma/discussions/12715 More on reddit.com
🌐 r/typescript
56
23
November 19, 2023
🌐
Prisma
prisma.io › home › prisma client › prisma client
Prisma Client overview | Prisma Documentation
generator client { provider = "prisma-client" output = "./generated" } bun · pnpm · yarn · npm · bun add @prisma/client · bun · pnpm · yarn · npm · bunx prisma generate · If you want more detail on this step, see Generating Prisma Client. import { PrismaClient } from "./generated/client"; const prisma = new PrismaClient(); const users = await prisma.user.findMany(); Set up and configure Prisma Client ·
🌐
Prisma Client Python
prisma-client-py.readthedocs.io › en › stable › reference › custom-generators
Custom Generators - Prisma Client Python - Read the Docs
from prisma.generator import ... Prisma Generator' default_output='out.txt', ) Prisma sends generators the Prisma Schema DMMF during the generate step, this is your Prisma Schema in AST form. The DMMF is represented in Prisma Client python with the Data mod...
🌐
Prisma
prisma.io › home › prisma cli reference › prisma cli reference › prisma cli reference
Prisma CLI reference | Prisma Documentation
The output of the command is connector-specific, and is not meant for returning data, but only to report success or failure. ... Before using the db execute command, you must configure your database connection in your prisma.config.ts file.
🌐
Prisma
prisma.io › home › introduction to prisma client › introduction to prisma client › introduction to prisma client › introduction to prisma client
Introduction to Prisma Client | Prisma Documentation
Prisma Client is based on the models in Prisma Schema. To provide the correct types, you need generate the client code: ... This will create a generated directory based on where you set the output to in the Prisma Schema.
🌐
Prisma
prisma.io › blog › why-prisma-orm-generates-code-into-node-modules-and-why-it-ll-change
Where Prisma ORM Generates Client Code (and Why)
May 23, 2025 - Since Prisma ORM v7, Prisma Client is generated into a folder you choose inside your project source, such as src/generated/prisma. The output option is required, and the generated code is treated like regular application code. Earlier versions ...
Find elsewhere
🌐
DEV Community
dev.to › yassineldeeb › create-prisma-generator-2mdg
Create Prisma Generator - DEV Community
January 11, 2022 - Prisma has a concept called "Generator". A generator is an executable program, which takes the parsed Prisma schema as an input and has full freedom to output anything. The most prominent generator is called prisma-client-js.
🌐
MCP Servers
mcpservers.org › home › agent skills library › prisma-cli-generate
prisma-cli-generate | Agent Skills Library
generator client { provider = "prisma-client" output = "../generated" } generator zod { provider = "zod-prisma-types" output = "../generated/zod" }
🌐
GitHub
github.com › prisma › prisma › discussions › 25127
Weird Prisma output behavior · prisma/prisma · Discussion #25127
By default, when you run prisma generate, the Prisma Client is generated into the ./node_modules/.prisma/client directory. This behavior ensures that the client is readily available for import using the @prisma/client package in your project. When you specify a custom output directory in the generator block of your schema.prisma file, Prisma generates the client in the specified location.
Author   prisma
🌐
nestjs-prisma
nestjs-prisma.dev › docs › custom-prisma-client-location
Custom Prisma Client Location - nestjs-prisma
Prisma allows you to customize the output location of your Prisma Client. generator client { provider = "prisma-client-js" output = "../node_modules/@notiz/prisma" }
🌐
Prisma Client Python
prisma-client-py.readthedocs.io
Prisma Client Python
A generator determines what assets ... In this case, as we want to generate Prisma Client Python, we use the prisma-client-py value. You can also define where the client will be generated to with the output option....
🌐
Lhowsam
lhowsam.com › blog › how-to-build-a-custom-prisma-generator
How to build a custom Prisma generator | lhowsam.com
August 27, 2023 - datasource db { provider = "postgresql" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" previewFeatures = ["fullTextSearch"] } generator enums { provider = "custom-enum-generator", outputFile = "./types" }
🌐
Prisma
prisma.io › home › schema api › schema api › schema api
Prisma Schema API | Prisma Documentation
This example shows how to define a custom output location of the generated asset to override the default one. generator client { provider = "prisma-client-js" output = "../src/generated/client" }
🌐
Prisma
v1.prisma.io › docs › 1.34 › prisma-cli-and-configuration › cli-command-reference › prisma-generate-xcv2
Prisma 1.34 - prisma1 generate
Generate the TypeScript client and store the generated files at ./generated/prisma ... generate: - generator: go-client output: ./generated/prisma - generator: graphql-schema output: ./generated/prisma
🌐
Prisma
v1.prisma.io › docs › 1.34 › prisma-client › setup › generating-the-client-TYPESCRIPT-r3c2
Prisma 1.34 - Generating the Client (TypeScript) with TypeScript
datamodel: datamodel.prisma endpoint: http://localhost:4466 secret: mysecret42 generate: - generator: typescript-client output: ./prisma-client/
🌐
GitHub
github.com › prisma › prisma › issues › 17162
generate output relative to `node_modules/@prisma/client` · Issue #17162 · prisma/prisma
January 6, 2023 - The best place to then generate the prisma client is node_modules/@prisma/client/{module_name}. Because this is fully supported and does not cause the desired problems.
Author   prisma
🌐
Answer Overflow
answeroverflow.com › m › 1365458108012564512
Generating Prisma Client - Prisma
April 25, 2025 - generator client { provider = "prisma-client-js" output = "app/generated/prisma/client" }
🌐
Prisma
v1.prisma.io › docs › 1.34 › prisma-client › setup › generating-the-client-JAVASCRIPT-rsc1
Prisma 1.34 - Generating the Client (JavaScript) with JavaScript
datamodel: datamodel.prisma endpoint: http://localhost:4466 secret: mysecret42 generate: - generator: javascript-client output: ./prisma-client/