Getting started
Learn how to quickly set up and start using Prisma Postgres.
Quickstart
To bootstrap a new Prisma ORM project with a Prisma Postgres database, run the following command in your terminal:
npx prisma init --dbAfter running this command, the terminal will guide you with next steps. Follow this page to complete the setup for your first Prisma Postgres project.
If you need a database quickly for testing, or want to try out Prisma Postgres, you can run the following command to spin up a temporary 24-hour database:
npx create-db@latestYou can learn more about npx create-db in the dedicated documentation.
Prisma ORM
The easiest ways to get started with Prisma Postgres is by following these guides:
If you are looking to explore Prisma Postgres in a fullstack project, check out these resources:
- Build a fullstack app with Next.js 15
- Next.js 15 example app (including authentication)
Connect via any database library / tool
You can access Prisma Postgres with any ORM or database tool of your choice. Once you have the connection string, you can follow the setup docs for PostgreSQL of any ORM or database tool:
Getting started
- Start from scratch - Create a new Prisma ORM project with Prisma Postgres
- Import from existing database - Import data from an existing database
- Build with Next.js 15 - Build a fullstack app with Next.js 15 and Prisma Postgres
You can either start with a fresh Prisma Postgres project or import data from an existing database to Prisma Postgres.