# From the CLI (/docs/next/prisma-postgres/from-the-cli)

> 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.

Start a Prisma Next app with Prisma Postgres from the command line.

Location: Next > Prisma Postgres > From the CLI

Use the CLI when you want Prisma Next and Prisma Postgres set up without leaving the terminal.

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

  

#### bun

```bash
bunx create-prisma@next
```

#### pnpm

```bash
pnpm dlx create-prisma@next
```

#### yarn

```bash
yarn dlx create-prisma@next
```

#### npm

```bash
npx create-prisma@next
```

Choose PostgreSQL and Prisma Postgres when prompted.

Setup provisions Prisma Postgres, writes `DATABASE_URL`, adds `prisma-next.md`, installs project-level Prisma Next skills for your coding agent, and writes the generated scripts used below.

## Initialize the database [#initialize-the-database]

From the generated project directory, run:

  

#### bun

```bash
bun run db:init
```

#### pnpm

```bash
pnpm run db:init
```

#### yarn

```bash
yarn db:init
```

#### npm

```bash
npm run db:init
```

## Seed data [#seed-data]

  

#### bun

```bash
bun run db:seed
```

#### pnpm

```bash
pnpm run db:seed
```

#### yarn

```bash
yarn db:seed
```

#### npm

```bash
npm run db:seed
```

## Run the app [#run-the-app]

  

#### bun

```bash
bun run dev
```

#### pnpm

```bash
pnpm run dev
```

#### yarn

```bash
yarn dev
```

#### npm

```bash
npm run dev
```

## Add Prisma Next to an existing app [#add-prisma-next-to-an-existing-app]

If the app already exists, run Prisma Next from the project root:

  

#### bun

```bash
bunx prisma-next init
```

#### pnpm

```bash
pnpm dlx prisma-next init
```

#### yarn

```bash
yarn dlx prisma-next init
```

#### npm

```bash
npx prisma-next init
```

Choose PostgreSQL, set `DATABASE_URL` to your Prisma Postgres connection string, and let init add `prisma-next.md`, package scripts, and the Prisma Next skills for your coding agent. Then follow the [PostgreSQL existing-project guide](https://www.prisma.io/docs/next/add-to-existing-project/postgresql).

## Import an existing database [#import-an-existing-database]

* Use [Import from PostgreSQL](https://www.prisma.io/docs/next/prisma-postgres/import-from-existing-database-postgresql) when your source database is PostgreSQL.
* Use [Import from MySQL](https://www.prisma.io/docs/next/prisma-postgres/import-from-existing-database-mysql) when your source database is MySQL.

## Related pages

- [`Import from MySQL`](https://www.prisma.io/docs/next/prisma-postgres/import-from-existing-database-mysql): Import an existing MySQL database into Prisma Postgres, then use it with Prisma Next.
- [`Import from PostgreSQL`](https://www.prisma.io/docs/next/prisma-postgres/import-from-existing-database-postgresql): Import an existing PostgreSQL database into Prisma Postgres, then use it with Prisma Next.