Prisma Next is in early access.Read the docs

prisma-next contract emit

Emit Prisma Next contract artifacts.

prisma-next contract emit reads your contract source and writes the generated artifacts used by the runtime, verification, and migration tooling.

The command is offline. It does not need a database connection.

Usage

prisma-next contract emit

Options

OptionWhat it does
--config <path>Reads a specific prisma-next.config.ts file.
--jsonPrints a machine-readable result.
-q, --quietSuppresses nonessential output.
-v, --verbosePrints more detail.

What it creates

The command emits:

  • contract.json, the canonical machine-readable contract
  • contract.d.ts, the generated TypeScript contract declarations

Do not edit these files by hand. Re-run contract emit after changing the contract source or extension pack list.

Examples

prisma-next contract emit
prisma-next contract emit --config ./custom-config.ts
prisma-next contract emit --json

Next steps

After emitting, choose the database workflow:

On this page