# Prisma 7 setup paths (/docs/v7/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: v7 > Prisma 7 setup paths

Prisma 7 remains fully supported; [Prisma 8](https://www.prisma.io/docs/getting-started) is the current 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@7.10.0 init`. 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 8](https://www.prisma.io/docs/prisma-orm) is the recommended path for new apps. It is the current major version of Prisma ORM. To start with Prisma 8, see the [getting started page](https://www.prisma.io/docs).

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

The recommended path is the [Quickstart with Prisma Postgres](https://www.prisma.io/docs/v7/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/v7/prisma-orm/quickstart/postgresql)
* [Quickstart with SQLite](https://www.prisma.io/docs/v7/prisma-orm/quickstart/sqlite) for a lightweight local setup
* [Quickstart with MySQL](https://www.prisma.io/docs/v7/prisma-orm/quickstart/mysql)
* [Quickstart with MongoDB](https://www.prisma.io/docs/v7/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/v7/prisma-orm/add-to-existing-project/postgresql)
* [Add Prisma ORM to an existing MySQL project](https://www.prisma.io/docs/v7/prisma-orm/add-to-existing-project/mysql)
* [Add Prisma ORM to an existing SQLite project](https://www.prisma.io/docs/v7/prisma-orm/add-to-existing-project/sqlite)
* [Add Prisma ORM to an existing MongoDB project](https://www.prisma.io/docs/v7/prisma-orm/add-to-existing-project/mongodb)
* [Add Prisma ORM to an existing Prisma Postgres project](https://www.prisma.io/docs/v7/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. Port the app to [Prisma Composer](https://www.prisma.io/docs/composer): add a small TypeScript declaration around your server code, read the port from `service.port()`, and bind credentials like `DATABASE_URL` with `envSecret` in the service's [input schema](https://www.prisma.io/docs/composer/service-input). [Port an existing app](https://www.prisma.io/docs/composer/porting-an-app) covers the changes with complete declarations.
2. Sign in with `npx prisma@latest auth login`.
3. Build your server bundle, then run `npx prisma@latest deploy module.ts` with `DATABASE_URL` exported; the first deploy copies input values from your shell up to the deployment. See [Deploying](https://www.prisma.io/docs/composer/deploying).
4. Keep deploying from the CLI, or [connect GitHub](https://www.prisma.io/docs/compute/github) to deploy on push.

For a worked example, from scratch or from an app you already have, follow [Deploy your first app](https://www.prisma.io/docs/prisma-compute/deploy).

## 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 8:

```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@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@7.10.0 init --db`, which provisions a Prisma Postgres database and may open a browser to sign in; if it does, stop and ask me to complete the sign-in.
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: port the app to Prisma Composer following https://www.prisma.io/docs/composer/porting-an-app.md — declare the service around the existing server, read the port from `service.port()` and bind 0.0.0.0, bind `DATABASE_URL` with `envSecret` in the service input, and produce one self-contained entry file. Check `npx prisma@latest auth whoami`. If I am not signed in, stop and ask me to run `npx prisma@latest auth login`, because that step opens a browser. Then run the build followed by `npx prisma@latest deploy module.ts` with `DATABASE_URL` exported so the first deploy copies it up, and verify the deployed URL with curl.

Current docs: https://www.prisma.io/docs/v7/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/v7/prisma-client)
* [Prisma Migrate getting started](https://www.prisma.io/docs/orm/v7/prisma-migrate/getting-started)
* [Prisma schema overview](https://www.prisma.io/docs/orm/v7/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