You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/skills/docs-writer/references/prisma-8.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Instead, append your section's redirect map to the commented block in `apps/docs
16
16
17
17
## Accuracy: test before you write
18
18
19
-
Every code sample must be executed against the published `@prisma/orm-*` packages before it lands, or clearly marked as conceptual. Scaffold throwaway apps with `create-prisma@next` non-interactive flags; use `bunx create-db` for PostgreSQL and `mongodb-memory-server` (replica set) for MongoDB. Key tested facts that older internal docs get wrong:
19
+
Every code sample must be executed against the published `@prisma/orm-*` packages before it lands, or clearly marked as conceptual. Scaffold throwaway apps with `create-prisma@latest` non-interactive flags; use `bunx create-db` for PostgreSQL and `mongodb-memory-server` (replica set) for MongoDB. Key tested facts that older internal docs get wrong:
20
20
21
21
- PostgreSQL model access is namespace-qualified: `db.orm.public.User`, `db.sql.public.user`. MongoDB uses flat lowercase plural roots (`db.orm.users`) and documents keep `_id`.
22
22
-`.update()` / `.delete()` affect one record; `updateAll` / `deleteAll` / `*Count` are the bulk forms. No `.count()` terminal; use `.aggregate(...)`.
Copy file name to clipboardExpand all lines: apps/blog/content/blog/prisma-next-performance-benchmark/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ We've shared [our benchmark repo](https://pris.ly/pn-benchmarks), so you can run
102
102
There are two ways to [get started](https://www.prisma.io/docs/v8/quickstart/postgresql). To spin up a complete template app, scaffold one with:
103
103
104
104
```shell
105
-
bunx create-prisma@next
105
+
bunx create-prisma@latest
106
106
```
107
107
108
108
This sets you up with a [Prisma Postgres](https://www.prisma.io/postgres) database and can deploy the app to [Prisma Compute](https://www.prisma.io/compute), our serverless runtime for Prisma apps, so you can see the bundle-size and cold-start benefits above end to end.
Copy file name to clipboardExpand all lines: apps/blog/content/blog/search-encrypted-data-with-prisma-next-and-cipherstash/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ The fastest way to understand searchable encryption is to run it. You don't need
234
234
### 1. Create a Prisma 8 app
235
235
236
236
```sh
237
-
npx create-prisma@next
237
+
npx create-prisma@latest
238
238
```
239
239
240
240
This gives you a fresh project with the contract-first workflow already wired up: a `contract.prisma` describing your models, and a migration loop that plans and applies the changes needed to match it.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/getting-started.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metaTitle: Prisma 7 getting started
6
6
metaDescription: Choose the fastest Prisma 7 setup path. Quickstarts and existing-project guides for Prisma ORM 7, Prisma Postgres, and Prisma Compute, plus an agent prompt.
7
7
---
8
8
9
-
Prisma 7 is the current generally available release of Prisma ORM. Install it with `npx prisma@latest init`. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.
9
+
Prisma 7 is the current generally available release of Prisma ORM. Scaffold a new Prisma 7 app with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@latest init`. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.
10
10
11
11
:::note
12
12
@@ -57,7 +57,7 @@ Set up the Prisma 7 stack: Prisma ORM 7, Prisma Postgres, and Prisma Compute.
57
57
58
58
If I have not told you which framework template to use, stop and ask.
59
59
60
-
1. Scaffold a new app non-interactively: `npx create-prisma@latest --name my-app --template [next|hono|nuxt|astro|nest|svelte|tanstack-start|elysia|turborepo] --provider postgresql --no-deploy`. Or add Prisma 7 to an existing app with `npx prisma@latest init --db`, which provisions a Prisma Postgres database; before that, check `npx @prisma/cli@latest auth whoami` and stop and ask me to run `auth login` if I am not signed in, because provisioning can open a browser.
60
+
1. Scaffold a new app non-interactively: `npx create-prisma@stable --name my-app --template [next|hono|nuxt|astro|nest|svelte|tanstack-start|elysia|turborepo] --provider postgresql --no-deploy`. Or add Prisma 7 to an existing app with `npx prisma@latest init --db`, which provisions a Prisma Postgres database; before that, check `npx @prisma/cli@latest auth whoami` and stop and ask me to run `auth login` if I am not signed in, because provisioning can open a browser.
61
61
2. From the project directory, define a small schema in `prisma/schema.prisma`, then run `npx prisma migrate dev --name init` and `npx prisma generate`. If migrate dev asks to reset the database, stop and ask me first.
62
62
3. Update the seed and app code to query the schema, and verify locally with the dev script.
63
63
4. Deploy with Prisma Compute: check `npx @prisma/cli@latest auth whoami` first. If I am not signed in, stop and ask me to run `npx @prisma/cli@latest auth login`, because that step opens a browser. Then run `npx @prisma/cli@latest app deploy --create-project my-app --env .env` so DATABASE_URL reaches the deployment, and verify the deployed URL with curl.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/index.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ full: true
34
34
The tutorial's journey, condensed: hand the prompt to your coding agent, or run the CLI steps yourself.
35
35
36
36
<GetStartedTabscli={`# Scaffold the app
37
-
npx create-prisma@next
37
+
npx create-prisma@latest
38
38
# Create a database (prints a connection string and claim URL)
39
39
npx create-db@latest
40
40
# Initialize and run (sample data seeds on the first query)
@@ -51,7 +51,7 @@ Create a new [framework] application with Prisma 8, seed it, and run it locally.
51
51
52
52
If I have not told you which framework, stop and ask before scaffolding. Valid --template values: next, hono, nuxt, astro, nest, svelte, tanstack-start, elysia.
2. Get a database connection string: use the one I give you, or create a Prisma Postgres database with `npx create-db@latest` and show me the claim URL it prints. Export it as `DATABASE_URL` in the shell and write it to `.env` in the project directory; the generated scripts read the environment variable, and the deploy step reads `.env`.
56
56
3. From the project directory, apply the starter contract: `npm run db:init`. Sample users are seeded automatically on the app's first query; there is no separate seed script.
57
57
4. Edit the starter contract under `src/prisma/` into a small schema for my use case, then run `npm run contract:emit` and plan and apply the migration: `npx prisma@next migration plan`, then `npx prisma@next migrate --yes`. Migration planning diffs the emitted contract, so the emit step is required.
@@ -82,7 +82,7 @@ If you're using Express or another Node.js server, follow the [existing-project
82
82
83
83
</SectionRow>
84
84
85
-
<SectionRowtitle="Using Prisma 7?"description="Prisma 7 is the current generally available release of Prisma ORM and remains fully supported. Install it with `npx prisma@latest init`. It pairs with Prisma Postgres and Prisma Compute the same way. When you're ready, Prisma 8 is the upgrade path.">
85
+
<SectionRowtitle="Using Prisma 7?"description="Prisma 7 is the current generally available release of Prisma ORM and remains fully supported. Scaffold it with `npx create-prisma@stable`, or add it to an existing project with `npx prisma@latest init`. It pairs with Prisma Postgres and Prisma Compute the same way. When you're ready, Prisma 8 is the upgrade path.">
86
86
87
87
<IconGrid>
88
88
<IconLinkhref="/getting-started"title="Prisma 7 setup paths"description="All database quickstarts, plus the agent prompt"icon={<Milestone />} />
@@ -127,7 +127,7 @@ Create a new [framework] application with Prisma 8 against my existing PostgreSQ
127
127
128
128
If I have not given you a connection string, stop and ask; do not invent one. Valid --template values: next, hono, nuxt, astro, nest, svelte, tanstack-start, elysia.
2. Export my connection string as `DATABASE_URL` in the shell; the generated scripts read the environment variable, not `.env`. From the project directory: `npm run db:init`, then start `npm run dev` in the background and verify the sample query returns data. Sample users are seeded automatically on the app's first query; there is no separate seed script.
132
132
3. Evolve the starter contract under `src/prisma/` into my schema, then run `npm run contract:emit`, `npx prisma@next migration plan`, and `npx prisma@next migrate --yes`.
2. Get a database connection string: use the one I give you, or create a Prisma Postgres database with `npx create-db@latest` and show me the claim URL it prints. Export it as `DATABASE_URL` in the shell and write it to `my-app/.env` for the deploy step; the generated scripts read the environment variable, not `.env`.
31
31
3. In `my-app`, run `npm run db:init`. Sample users are seeded automatically on the app's first query; there is no separate seed script.
32
32
4. Start `npm run dev` in the background (with `DATABASE_URL` exported) and verify `curl http://localhost:3000/users` returns the seeded users.
@@ -42,7 +42,7 @@ Use the installed Prisma 8 skills.
42
42
One command creates the app and wires up Prisma 8:
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/v8/getting-started.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Start with a quickstart if you want Prisma 8 to create the app. Use the existing
12
12
## Start a new project
13
13
14
14
```npm
15
-
npx create-prisma@next
15
+
npx create-prisma@latest
16
16
```
17
17
18
18
<Cards>
@@ -34,7 +34,7 @@ Create a new [framework] application with Prisma 8, seed it, and run it locally.
34
34
35
35
If I have not told you which framework, stop and ask before scaffolding. Valid --template values: next, hono, nuxt, astro, nest, svelte, tanstack-start, elysia.
2. Get a database connection string: use the one I give you, or create a Prisma Postgres database with `npx create-db@latest` and show me the claim URL it prints. Export it as `DATABASE_URL` in the shell; the generated scripts read the environment variable, not `.env`.
39
39
3. From the project directory, apply the starter contract: `npm run db:init`. Sample users are seeded automatically on the app's first query; there is no separate seed script.
40
40
4. Edit the starter contract under `src/prisma/` into a small schema for my use case, then run `npm run contract:emit` and plan and apply the migration: `npx prisma@next migration plan`, then `npx prisma@next migrate --yes`. Migration planning diffs the emitted contract, so the emit step is required.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/v8/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ If you want to stay on the current generally available version of Prisma ORM, yo
21
21
Prisma 8 is the recommended starting point for new projects.
22
22
23
23
```npm
24
-
npx create-prisma@next
24
+
npx create-prisma@latest
25
25
```
26
26
27
27
Start with the setup page when you want a guided first run.
@@ -46,7 +46,7 @@ Create a new [framework] application with Prisma 8, seed it, and run it locally.
46
46
47
47
If I have not told you which framework, stop and ask before scaffolding. Valid --template values: next, hono, nuxt, astro, nest, svelte, tanstack-start, elysia.
2. Get a database connection string: use the one I give you, or create a Prisma Postgres database with `npx create-db@latest` and show me the claim URL it prints. Export it as `DATABASE_URL` in the shell and write it to `.env` in the project directory; the generated scripts read the environment variable, and the deploy step reads `.env`.
51
51
3. From the project directory, apply the starter contract: `npm run db:init`. Sample users are seeded automatically on the app's first query; there is no separate seed script.
52
52
4. Edit the starter contract under `src/prisma/` into a small schema for my use case, then run `npm run contract:emit` and plan and apply the migration: `npx prisma@next migration plan`, then `npx prisma@next migrate --yes`. Migration planning diffs the emitted contract, so the emit step is required.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/v8/prisma-postgres/from-the-cli.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Use the CLI when you want Prisma 8 and Prisma Postgres set up without leaving th
12
12
## Start a new app
13
13
14
14
```npm
15
-
npx create-prisma@next
15
+
npx create-prisma@latest
16
16
```
17
17
18
18
Choose PostgreSQL when prompted. Setup adds `prisma-next.md`, installs project-level Prisma 8 skills for your coding agent, and writes the generated scripts used below.
0 commit comments