# @prisma/cli

> Command-line interface for the Prisma Developer Platform.

Latest version **8.0.0-rc.32** (published 2026-11-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @prisma/cli
pnpm add @prisma/cli
yarn add @prisma/cli
bun add @prisma/cli
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 8.0.0-rc.32 |
| Published | 2026-11-06 |
| First published | 2019-05-31 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Maintainers | prismabot, aqrln, wmadden-prisma, rtbenfield |
| Keywords | prisma, cli, database, app, deployment |

## Links

- npm: https://www.npmjs.com/package/@prisma/cli
- Repository: https://github.com/prisma/prisma-cli
- Homepage: https://github.com/prisma/prisma-cli#readme
- Issues: https://github.com/prisma/prisma-cli/issues
- npm.io page: https://npm.io/package/@prisma/cli

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 8.0.0-rc.32 (latest) — 2026-11-06
- 8.0.0-rc.33-dev.185 (dev) — 2026-11-06
- 8.0.0-rc.10 (next) — 2026-08-25
- 3.0.0-alpha.14 (preview) — 2026-05-27
- 2.16.0-integration-cli.1 (integration) — 2021-02-02
- 2.13.1-dev.2 (patch-dev) — 2020-12-17
- 2.0.0-alpha.1314 (alpha) — 2020-06-09
- 8.0.0-rc.32-dev.184 — 2026-11-06
- 8.0.0-rc.31-dev.183 — 2026-11-06
- 8.0.0-rc.31-dev.182 — 2026-11-06
- 8.0.0-rc.31 — 2026-11-06
- 8.0.0-rc.31-dev.181 — 2026-11-06
- 8.0.0-rc.30-dev.180 — 2026-11-06
- 8.0.0-rc.30-dev.179 — 2026-11-05
- 8.0.0-rc.30 — 2026-11-03
- … 2008 more at https://npm.io/package/@prisma/cli/versions

## README

<p align="center">
  <img src="https://i.imgur.com/h6UIYTu.png" alt="Prisma" width="360" />
</p>

# Prisma CLI

[![npm version](https://img.shields.io/npm/v/@prisma/cli?label=npm)](https://www.npmjs.com/package/@prisma/cli)
[![license](https://img.shields.io/npm/l/@prisma/cli)](https://github.com/prisma/prisma-cli/blob/main/LICENSE)
[![Node.js](https://img.shields.io/node/v/@prisma/cli)](https://www.npmjs.com/package/@prisma/cli)

[Quickstart](#quickstart) • [Commands](#commands) • [Release candidate notes](#release-candidate-notes) • [Documentation](#documentation) • [Support](#support)

---

`@prisma/cli` is the release candidate of the new CLI for the
Prisma Developer Platform.

It is one binary for the ORM, Composer, and the Prisma Developer
Platform: projects, branches, services, service versions, environment
variables, and the Prisma ORM schema and migration workflow.

Prisma also runs [Prisma Postgres](https://www.prisma.io/postgres) (managed Postgres) and [Prisma Compute](https://www.prisma.io/compute) (app hosting).

---

## Quickstart

Install the package locally:

```bash
npm install --save-dev @prisma/cli
```

Run the binary exposed by this package:

```bash
npx prisma-cli --help
npx prisma-cli auth login
npx prisma-cli project create my-app
npx prisma-cli git connect git@github.com:owner/repo.git
```

Deployments start from pushing the connected repository, the Console, or `prisma-cli deploy`.

With `pnpm`:

```bash
pnpm add -D @prisma/cli
pnpm prisma-cli auth login
pnpm prisma-cli git connect
```

Useful next commands:

```bash
npx prisma-cli service list
npx prisma-cli service logs
npx prisma-cli project env add DATABASE_URL=postgresql://example --role preview
npx prisma-cli project env add --file .env --role preview
npx prisma-cli project env list
npx prisma-cli project env list --role preview
```

This package exposes `prisma-cli` so it can coexist with the existing
`prisma` executable.

---

## Commands

| Group | What it does |
| --- | --- |
| `auth` | Log in, log out, and inspect the active Prisma account. |
| `project` | List, create, link, and manage projects and their environment variables. |
| `git` | Connect or disconnect a project from a GitHub repository; pushes deploy. |
| `branch` | List Prisma branches for the resolved project. |
| `postgres` | Create, inspect, back up, restore, and delete Prisma Postgres databases and their connections. |
| `bucket` | Create, list, and delete object-store buckets and their access keys. |
| `service` | Inspect services: versions, logs, domains, promote, roll back, delete. |
| `dev`, `deploy` | Run a Composer app locally; deploy it to the platform. `dev url` prints a running node's local URL and `dev stop` stops the app. |
| `emulator` | List the local emulators `prisma dev` runs services, databases and buckets on. |
| `contract`, `db`, `migration`, `orm init`, `lsp` | The Prisma ORM workflow. |

Common examples:

```bash
npx prisma-cli --version
npx prisma-cli auth whoami
npx prisma-cli project show
npx prisma-cli branch list
npx prisma-cli service list
npx prisma-cli service version promote VERSION_ID
```

### Built for humans, CI, and agents

- Human-readable output by default.
- `--json` for structured output.
- `--no-interactive` and `--yes` for automation.
- `PRISMA_SERVICE_TOKEN` for headless authenticated commands.
- Stable command groups, flags, and error codes for scripts and agents.
- Environment variable values are not printed back to the terminal.

---

## Release candidate notes

- Requires Node.js 22.18 or newer on the 22 line, 24.11 or newer on the 24 line, or 26 or newer.
- This is a release-candidate package and may change quickly.
- The 8.0.0 release candidates publish as `@prisma/cli` on the `latest` dist-tag.
- The package binary is `prisma-cli`; the sibling `prisma` package ships the same CLI under the `prisma` binary.
- Local project context is cached in `.prisma/local.json`, which is gitignored and not a declarative repo config file.

---

## Documentation

- [CLI docs index](https://github.com/prisma/prisma-cli/blob/main/docs/README.md)
- [Command principles](https://github.com/prisma/prisma-cli/blob/main/docs/product/command-principles.md)
- [Output conventions](https://github.com/prisma/prisma-cli/blob/main/docs/product/output-conventions.md)
- [Error conventions](https://github.com/prisma/prisma-cli/blob/main/docs/product/error-conventions.md)

## Support

Send a bug report or feature request directly from your terminal:

```bash
npx @prisma/cli@latest feedback "Describe what happened and what you expected"
```

Feedback is anonymous by default. Add `--email you@example.com` if you want a
reply. Submissions include your message, CLI and runtime versions, OS platform,
and architecture. Review your message for secrets before sending.

For a public discussion, use [GitHub issues](https://github.com/prisma/prisma-cli/issues).

Security reports should follow Prisma's
[security policy](https://github.com/prisma/prisma-cli/blob/main/SECURITY.md)
and should not be filed as public issues.

## License

Apache-2.0

---
_Source: https://npm.io/package/@prisma/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
