# version (Prisma CLI v7)

Display Prisma version information for CLI, Client, and engine binaries

The `prisma version` command outputs information about your current Prisma version, platform, and engine binaries.

## Usage

```bash
prisma version [options]
```

Or use the shorthand:

```bash
prisma -v [options]
```

## Options

| Option         | Description                               |
| -------------- | ----------------------------------------- |
| `-h`, `--help` | Display help message                      |
| `--json`       | Output version information in JSON format |

## Examples

### Display version information

:::code-group
```bash title="bun"
bunx prisma version
```

```bash title="pnpm"
pnpm prisma version
```

```bash title="yarn"
yarn prisma version
```

```bash title="npm"
npx prisma version
```
:::

Output:

```text
Environment variables loaded from .env
prisma               : 2.21.0-dev.4
@prisma/client       : 2.21.0-dev.4
Current platform     : windows
Query Engine         : query-engine 2fb8f444d9cdf7c0beee7b041194b42d7a9ce1e6
Migration Engine     : migration-engine-cli 2fb8f444d9cdf7c0beee7b041194b42d7a9ce1e6
Format Binary        : prisma-fmt 60ba6551f29b17d7d6ce479e5733c70d9c00860e
Default Engines Hash : 60ba6551f29b17d7d6ce479e5733c70d9c00860e
Studio               : 0.365.0
```

### Display version using shorthand

:::code-group
```bash title="bun"
bunx prisma -v
```

```bash title="pnpm"
pnpm prisma -v
```

```bash title="yarn"
yarn prisma -v
```

```bash title="npm"
npx prisma -v
```
:::

### Display version as JSON

:::code-group
```bash title="bun"
bunx prisma version --json
```

```bash title="pnpm"
pnpm prisma version --json
```

```bash title="yarn"
yarn prisma version --json
```

```bash title="npm"
npx prisma version --json
```
:::

Output:

```json
{
  "prisma": "2.21.0-dev.4",
  "@prisma/client": "2.21.0-dev.4",
  "current-platform": "windows",
  "query-engine": "query-engine 60ba6551f29b17d7d6ce479e5733c70d9c00860e",
  "migration-engine": "migration-engine-cli 60ba6551f29b17d7d6ce479e5733c70d9c00860e",
  "format-binary": "prisma-fmt 60ba6551f29b17d7d6ce479e5733c70d9c00860e",
  "default-engines-hash": "60ba6551f29b17d7d6ce479e5733c70d9c00860e",
  "studio": "0.365.0"
}
```

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