# Prisma 7 setup paths (/docs/getting-started)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

Choose the fastest path to start using Prisma ORM 7, Prisma Postgres, or Prisma Compute in a new or existing TypeScript project.

Location: Prisma 7 setup paths

Prisma 7 is the current generally available release of Prisma ORM, and `npx prisma@latest init` installs it. This page collects the Prisma 7 starting points: start a new project, add Prisma to an existing one, then deploy.

> [!NOTE]
> Starting a new project? [Prisma Next](https://www.prisma.io/docs/next) is the recommended path for new apps. It is the next major version of Prisma ORM (soon Prisma 8), available now in Early Access. The [getting started page](https://www.prisma.io/docs) covers it.

## Start a new project [#start-a-new-project]

The recommended path is the [Quickstart with Prisma Postgres](https://www.prisma.io/docs/prisma-orm/quickstart/prisma-postgres): it provisions a managed PostgreSQL database for you and gets you from install to first query in about five minutes.

Working with a specific database instead?

* [Quickstart with PostgreSQL](https://www.prisma.io/docs/prisma-orm/quickstart/postgresql)
* [Quickstart with SQLite](https://www.prisma.io/docs/prisma-orm/quickstart/sqlite) for a lightweight local setup
* [Quickstart with MySQL](https://www.prisma.io/docs/prisma-orm/quickstart/mysql)
* [Quickstart with MongoDB](https://www.prisma.io/docs/prisma-orm/quickstart/mongodb)

## Add Prisma to an existing project [#add-prisma-to-an-existing-project]

Use these guides if you already have an application or database and want to add Prisma ORM:

* [Add Prisma ORM to an existing PostgreSQL project](https://www.prisma.io/docs/prisma-orm/add-to-existing-project/postgresql)
* [Add Prisma ORM to an existing MySQL project](https://www.prisma.io/docs/prisma-orm/add-to-existing-project/mysql)
* [Add Prisma ORM to an existing SQLite project](https://www.prisma.io/docs/prisma-orm/add-to-existing-project/sqlite)
* [Add Prisma ORM to an existing MongoDB project](https://www.prisma.io/docs/prisma-orm/add-to-existing-project/mongodb)
* [Add Prisma ORM to an existing Prisma Postgres project](https://www.prisma.io/docs/prisma-orm/add-to-existing-project/prisma-postgres)

## Deploy to Prisma Compute [#deploy-to-prisma-compute]

Once your app runs locally, [Prisma Compute](https://www.prisma.io/docs/compute) (currently in Public Beta) runs it next to your Prisma Postgres database:

1. Sign in with `npx @prisma/cli@latest auth login`.
2. Run `npx @prisma/cli@latest app deploy` from your app directory to get a live URL, adding `--env .env` so environment variables like `DATABASE_URL` reach the deployment.
3. `--env .env` applies to that one deployment. Persist variables for future deploys with `npx @prisma/cli@latest project env add --file .env --role production`; see [environment variables](https://www.prisma.io/docs/compute/environment-variables).
4. Keep deploying from the CLI, or [connect GitHub](https://www.prisma.io/docs/compute/github) to deploy on push.

The [deploy guide](https://www.prisma.io/docs/prisma-compute/deploy) covers build settings, frameworks, and troubleshooting.

## Use with your agent [#use-with-your-agent]

To hand the full Prisma 7 stack to your coding agent, copy this prompt. The commands below install Prisma 7, not Prisma Next:

```text
Set up the Prisma 7 stack: Prisma ORM 7, Prisma Postgres, and Prisma Compute.

If I have not told you which framework template to use, stop and ask.

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.
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.
3. Update the seed and app code to query the schema, and verify locally with the dev script.
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.

Current docs: https://www.prisma.io/docs/getting-started.md and https://www.prisma.io/docs/llms.txt.
```

## Next steps [#next-steps]

After setup, these pages are usually the next ones people need:

* [Prisma Client overview](https://www.prisma.io/docs/orm/prisma-client)
* [Prisma Migrate getting started](https://www.prisma.io/docs/orm/prisma-migrate/getting-started)
* [Prisma schema overview](https://www.prisma.io/docs/orm/prisma-schema/overview)
* [Open Prisma Studio](https://www.prisma.io/docs/studio/getting-started) to inspect and edit data visually
* [Review pricing](https://www.prisma.io/pricing) if you're evaluating Prisma Postgres for a team

## Related pages

- [`Build faster with Prisma + AI`](https://www.prisma.io/docs/ai): Build faster with Prisma and AI coding tools like Cursor, Codex, and ChatGPT
- [`CLI Overview`](https://www.prisma.io/docs/cli): The Prisma CLI is the command-line interface for Prisma ORM. Use it to initialize projects, generate Prisma Client, manage databases, run migrations, and more
- [`Console`](https://www.prisma.io/docs/console): Learn how to use the Console to manage and integrate Prisma products into your application.
- [`Guides`](https://www.prisma.io/docs/guides): A collection of guides for various tasks and workflows
- [`Introduction to Prisma Next`](https://www.prisma.io/docs/next): Prisma Next is the next major version of Prisma ORM, available in Early Access.