# prisma-next migration show (/docs/cli/next/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 Next migration package.

Location: CLI > Next > prisma-next migration show

`prisma-next migration show` displays the operations, statement preview, and metadata for a migration package.

Use this command during review before applying a migration package.

## Usage [#usage]

```bash
prisma-next migration show
```

Pass a directory path or migration hash prefix to inspect a specific migration:

```bash
prisma-next migration show sha256:a1b2c3
```

## Options [#options]

| Option            | What it does                                                               |
| ----------------- | -------------------------------------------------------------------------- |
| `[target]`        | Migration path or migration hash prefix. Defaults to the latest migration. |
| `--config <path>` | Reads a specific `prisma-next.config.ts` file.                             |
| `--json`          | Prints a machine-readable result.                                          |

## Examples [#examples]

```bash
prisma-next migration show
prisma-next migration show ./migrations/app/20260515T1200_add-users
prisma-next migration show sha256:a1b2c3 --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
* any extension-space migrations included with the application migration

## Related pages

- [`CLI configuration`](https://www.prisma.io/docs/cli/next/configuration): Configure Prisma Next CLI commands with prisma-next.config.ts and global flags.
- [`prisma-next contract emit`](https://www.prisma.io/docs/cli/next/contract-emit): Emit Prisma Next contract artifacts.
- [`prisma-next contract infer`](https://www.prisma.io/docs/cli/next/contract-infer): Infer a starter contract from an existing database.
- [`prisma-next db init`](https://www.prisma.io/docs/cli/next/db-init): Initialize a database from the current Prisma Next contract.
- [`prisma-next db schema`](https://www.prisma.io/docs/cli/next/db-schema): Inspect a live database schema.