Skip to content

Conversation

ankur-arch
Copy link
Contributor

No description provided.

@ankur-arch ankur-arch requested a review from nikolasburk July 23, 2025 11:04
@ankur-arch ankur-arch self-assigned this Jul 23, 2025
Copy link
Contributor

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

Copy link
Contributor

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

Copy link

cloudflare-workers-and-pages bot commented Jul 23, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6667fe7
Status: ✅  Deploy successful!
Preview URL: https://0ce5a456.docs-51g.pages.dev
Branch Preview URL: https://dc-4164.docs-51g.pages.dev

View logs

Copy link
Member

@nikolasburk nikolasburk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great Ankur, well done 👏 I made a few small suggestions for your consideration 🙌

Comment on lines 12 to 26
To **bootstrap a new Prisma ORM project with a Prisma Postgres database**, run the following command in your terminal:

```terminal
npx prisma init --db
```

Once you ran this command, the terminal will output instructions for you to [follow the steps on this page](/getting-started/prisma-postgres/from-the-cli) in order to set up your first project with Prisma Postgres.
After running this command, the terminal will guide you with next steps. Follow [this page](/getting-started/prisma-postgres/from-the-cli) to complete the setup for your first Prisma Postgres project.

If you only need a **Prisma Postgres connection string** (without creating a full project), use:

```terminal
npx create-db@latest
```

You can learn more about `npx create-db` in [the dedicated documentation](/postgres/introduction/npx-create-db).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would separate these two more clearly, probably by putting a heading above each.

I think right now it's too easy to think that users should run these two commands sequentially but that's not the case. (I know from myself that when I click on "Getting started" buttons, I often just skim for the "actions" I should take and copy/paste without reading much. If I did that, I'd run both commands).

Maybe smth like:

## Option A: Set up Prisma Postgres with Prisma ORM

... init --db

## Option B: Only create a Prisma Postgres DB (no auth required)

... create-db

mhessdev and others added 9 commits July 23, 2025 09:09
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
@mhessdev mhessdev merged commit c3c4c82 into main Jul 23, 2025
7 of 8 checks passed
@mhessdev mhessdev deleted the DC-4164 branch July 23, 2025 14:21
jlecordier pushed a commit to jlecordier/docs-1 that referenced this pull request Sep 3, 2025
* feat: add docs for npx create-db

* Update content/200-orm/500-reference/200-prisma-cli-reference.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/200-orm/500-reference/200-prisma-cli-reference.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/200-orm/500-reference/200-prisma-cli-reference.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/200-orm/500-reference/200-prisma-cli-reference.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/250-postgres/100-introduction/220-npx-create-db.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/250-postgres/100-introduction/220-npx-create-db.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/250-postgres/100-introduction/220-npx-create-db.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* Update content/250-postgres/100-introduction/220-npx-create-db.mdx

Co-authored-by: Nikolas <nikolas.burk@gmail.com>

* added note to getting started`

---------

Co-authored-by: Marc Hess <marc@marchess.dev>
Co-authored-by: Nikolas <nikolas.burk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants