# migration show (/docs/cli/migration-show)

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

Inspect a Prisma 8 migration package.

Location: CLI > migration show

`migration show` displays the operations, statement preview, and metadata for one migration package.

Use this command during review before applying a migration package. The command is offline. It does not consult the database.

## Usage [#usage]

  

#### bun

```bash
bunx prisma@latest migration show <target>
```

#### pnpm

```bash
pnpm dlx prisma@latest migration show <target>
```

#### yarn

```bash
yarn dlx prisma@latest migration show <target>
```

#### npm

```bash
npx prisma@latest migration show <target>
```

## Options [#options]

| Argument or option | What it does                                                                         |
| ------------------ | ------------------------------------------------------------------------------------ |
| `<target>`         | The migration to inspect: a directory name, a hash or hash prefix, a ref, or a path. |
| `--config <path>`  | Read this config file instead of `./prisma.config.ts`.                               |
| `--json`           | Prints a machine-readable result.                                                    |

## Examples [#examples]

  

#### bun

```bash
bunx prisma@latest migration show 20260101_100000_add_user
bunx prisma@latest migration show a1b2c3
bunx prisma@latest migration show migrations/app/20260101_100000_add_user
bunx prisma@latest migration show 20260101_100000_add_user --json
```

#### pnpm

```bash
pnpm dlx prisma@latest migration show 20260101_100000_add_user
pnpm dlx prisma@latest migration show a1b2c3
pnpm dlx prisma@latest migration show migrations/app/20260101_100000_add_user
pnpm dlx prisma@latest migration show 20260101_100000_add_user --json
```

#### yarn

```bash
yarn dlx prisma@latest migration show 20260101_100000_add_user
yarn dlx prisma@latest migration show a1b2c3
yarn dlx prisma@latest migration show migrations/app/20260101_100000_add_user
yarn dlx prisma@latest migration show 20260101_100000_add_user --json
```

#### npm

```bash
npx prisma@latest migration show 20260101_100000_add_user
npx prisma@latest migration show a1b2c3
npx prisma@latest migration show migrations/app/20260101_100000_add_user
npx prisma@latest migration show 20260101_100000_add_user --json
```

## What to check [#what-to-check]

Before applying, review:

* the source and destination contract hashes
* the planned operations
* generated SQL statements or operation payloads
* the migration's metadata

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