# CLI Overview (/docs/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.

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

Location: CLI Overview

The Prisma CLI provides commands for:

* **Project setup**: Initialize new Prisma projects
* **Code generation**: Generate Prisma Client and other artifacts
* **Database management**: Pull schemas, push changes, seed data
* **Migrations**: Create, apply, and manage database migrations
* **Development tools**: Local database servers, schema validation, formatting

Installation [#installation]

The Prisma CLI is available as an npm package. Install it as a development dependency:

  

#### bun

```bash
bun add prisma --dev
```

#### pnpm

```bash
pnpm add prisma --save-dev
```

#### yarn

```bash
yarn add prisma --dev
```

#### npm

```bash
npm install prisma --save-dev
```

> [!NOTE]
> Looking for [Prisma Compute](https://www.prisma.io/docs/compute) commands? Deployments to Compute use the separate [`@prisma/cli`](https://www.prisma.io/docs/compute/getting-started) beta package, which exposes the `prisma-cli` binary so it can coexist with `prisma`. See [Get started with `@prisma/cli`](https://www.prisma.io/docs/compute/getting-started) and the [Prisma Compute CLI reference](https://www.prisma.io/docs/compute/cli-reference).

Usage [#usage]

```bash
prisma [command]
```

Commands [#commands]

| Command                     | Description                                          |
| --------------------------- | ---------------------------------------------------- |
| [`init`](https://www.prisma.io/docs/cli/init)         | Set up Prisma for your app                           |
| [`dev`](https://www.prisma.io/docs/cli/dev)           | Start a local Prisma Postgres server for development |
| [`generate`](https://www.prisma.io/docs/cli/generate) | Generate artifacts (e.g. Prisma Client)              |
| [`db`](https://www.prisma.io/docs/cli/db)             | Manage your database schema and lifecycle            |
| [`migrate`](https://www.prisma.io/docs/cli/migrate)   | Migrate your database                                |
| [`studio`](https://www.prisma.io/docs/cli/studio)     | Browse your data with Prisma Studio                  |
| [`validate`](https://www.prisma.io/docs/cli/validate) | Validate your Prisma schema                          |
| [`format`](https://www.prisma.io/docs/cli/format)     | Format your Prisma schema                            |
| [`version`](https://www.prisma.io/docs/cli/version)   | Display Prisma version info                          |
| [`debug`](https://www.prisma.io/docs/cli/debug)       | Display Prisma debug info                            |

Global flags [#global-flags]

These flags are available for all commands:

| Flag                | Description                         |
| ------------------- | ----------------------------------- |
| `--help`, `-h`      | Show help information for a command |
| `--preview-feature` | Run Preview Prisma commands         |

Using a HTTP proxy [#using-a-http-proxy]

Prisma CLI supports custom HTTP proxies. This is useful when behind a corporate firewall.

Set one of these environment variables:

* `HTTP_PROXY` or `http_proxy`: Proxy URL for HTTP traffic (e.g., `http://localhost:8080`)
* `HTTPS_PROXY` or `https_proxy`: Proxy URL for HTTPS traffic (e.g., `https://localhost:8080`)

## 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
- [`Choose a setup path`](https://www.prisma.io/docs/getting-started): Choose the fastest path to start using Prisma ORM, Prisma Postgres, or Prisma Compute in a new or existing TypeScript project.
- [`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.