# CLI Overview (/docs/cli)

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:

  

#### npm

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

#### pnpm

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

#### yarn

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

#### bun

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

Usage [#usage]

```bash
prisma [command]
```

Commands [#commands]

| Command                     | Description                                          |
| --------------------------- | ---------------------------------------------------- |
| [`init`](/cli/init)         | Set up Prisma for your app                           |
| [`dev`](/cli/dev)           | Start a local Prisma Postgres server for development |
| [`generate`](/cli/generate) | Generate artifacts (e.g. Prisma Client)              |
| [`db`](/cli/db)             | Manage your database schema and lifecycle            |
| [`migrate`](/cli/migrate)   | Migrate your database                                |
| [`studio`](/cli/studio)     | Browse your data with Prisma Studio                  |
| [`validate`](/cli/validate) | Validate your Prisma schema                          |
| [`format`](/cli/format)     | Format your Prisma schema                            |
| [`version`](/cli/version)   | Display Prisma version info                          |
| [`debug`](/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 and ChatGPT
- [`Choose a setup path`](https://www.prisma.io/docs/getting-started): Choose the fastest path to start using Prisma ORM or Prisma Postgres in a new or existing 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
- [`Management API`](https://www.prisma.io/docs/management-api): Programmatically manage your Prisma Postgres databases, projects, and workspaces with the Management API