# Overview (/docs/cli/v7)

> 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 browse data with Prisma Studio

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@7.10.0 --dev
```

#### pnpm

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

#### yarn

```bash
yarn add prisma@7.10.0 --dev
```

#### npm

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

> [!NOTE]
> This page documents the Prisma 7 CLI that ships in the `prisma` package. Prisma 8 introduces a new, unified Prisma CLI that also includes commands for [Prisma Composer](https://www.prisma.io/docs/composer) and [Prisma Compute](https://www.prisma.io/docs/compute). Prisma 8 publishes it as `prisma@latest`. See the [Prisma 8 CLI reference](https://www.prisma.io/docs/cli), the [`deploy`](https://www.prisma.io/docs/cli/deploy) and [`dev`](https://www.prisma.io/docs/cli/dev) commands, and the [platform commands](https://www.prisma.io/docs/cli#platform-commands).

## Usage [#usage]

```bash
prisma [command]
```

## Commands [#commands]

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

- [`auth`](https://www.prisma.io/docs/cli/auth): Sign in to your Prisma account from the CLI, sign out, and manage workspace sessions.
- [`branch`](https://www.prisma.io/docs/cli/branch): List platform branches for a project.
- [`bucket`](https://www.prisma.io/docs/cli/bucket): Create and manage object-store buckets.
- [`Configuration`](https://www.prisma.io/docs/cli/configuration): Configure Prisma 8 CLI commands with prisma.config.ts and global flags.
- [`contract emit`](https://www.prisma.io/docs/cli/contract-emit): Emit Prisma 8 contract artifacts.