Skip to content

Commit 3685dd2

Browse files
docs(quickstart): the skills choice comes before the init --db command
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gregory Boch <boch@prisma.io>
1 parent 2e9b4c7 commit 3685dd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/docs/content/docs/(index)/prisma-orm/quickstart/postgresql.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ The temporary database is deleted after 72 hours unless you claim it with a free
4949

5050
**With a free Prisma account:** to keep the database from the start, run `init --db` from the generated project directory. If you have no account yet, [create one](https://console.prisma.io/sign-up?utm_source=docs&utm_medium=content&utm_content=orm-quickstart-postgresql) first; the Free plan needs no credit card.
5151

52+
`init --db` also sets up the Prisma agent skills, like plain [`init`](/cli/init). If you skipped them during setup (you answered no at the skills prompt or passed `--skills none`), add `--skills=none --no-postinstall` to the command below, so that `init` adds neither the skills nor the `postinstall` hook that resyncs them.
53+
5254
```bash
5355
npx prisma init --db --name my_app_db
5456
```
5557

5658
`init --db` opens your browser to sign you in if you are not signed in yet, creates a project and links the directory to it, then creates a Prisma Postgres database in that project and prints its connection string once. `--name` names the new project and the database (if the directory is already linked to a project, the database goes there and that project keeps its name); name them differently from your app, so that the project does not collide with the one a later deploy creates. Mint another connection string later with `npx prisma postgres connection create my_app_db` if you need one. See [`init`](/cli/init) and [`postgres`](/cli/postgres).
5759

58-
`init --db` also sets up the Prisma agent skills, like plain [`init`](/cli/init). If you skipped them during setup (you answered no at the skills prompt or passed `--skills none`), run `npx prisma init --db --name my_app_db --skills=none --no-postinstall` instead, so that `init` adds neither the skills nor the `postinstall` hook that resyncs them.
59-
6060
### Set the database connection [#2-set-the-database-connection]
6161

6262
Export `DATABASE_URL` in the shell you run the commands from, with the connection string from step 1 as its value. The generated scripts read the variable from the environment, not from `.env`.

0 commit comments

Comments
 (0)