# Overview (Prisma CLI v7) (/docs/cli/v7)

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

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

#### bun

```bash
bun add prisma@prev --dev
```

#### pnpm

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

#### yarn

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

#### npm

```bash
npm install prisma@prev --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](/guides/build-composer) and [Prisma Compute](/guides/deploy-compute). Prisma 8 publishes it as `prisma@latest`. See the [Prisma 8 CLI reference](/guides/reference-3-cli), the [`deploy`](/guides/platform-deploy) and [`dev`](/guides/platform-dev) commands, and the [platform commands](/guides/reference-3-cli#platform-commands).

## Usage

```bash
prisma [command]
```

## Commands

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

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

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`](/guides/platform-auth): Sign in to your Prisma account from the CLI, sign out, and manage workspace sessions.
- [`branch`](/guides/platform-branch): List platform branches for a project.
- [`bucket`](/guides/platform-bucket): Create and manage object-store buckets.
- [`Configuration`](/guides/introduction-6-configuration): Configure Prisma ORM CLI commands with prisma.config.ts and global flags.
- [`contract emit`](/guides/orm-contract-emit): Emit Prisma ORM contract artifacts.

## Related pages

- [Authentication & Tools](./authentication-tools-index.md)
- [Build](./build-index.md)
- [Changelog](../changelog.md)
- [Concepts](./concepts-index.md)
- [Console commands](./console-commands-index.md)
- [Contract Authoring](./contract-authoring-index.md)
- [Core Concepts](./core-concepts-index.md)
- [Data Modeling](./data-modeling-index.md)
- [Database](./database-index.md)
- [DB commands](./db-commands-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
