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 emitOptions
| Option | What it does |
|---|---|
--config <path> | Reads a specific prisma-next.config.ts file. |
--json | Prints a machine-readable result. |
-q, --quiet | Suppresses nonessential output. |
-v, --verbose | Prints more detail. |
What it creates
The command emits:
contract.json, the canonical machine-readable contractcontract.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 --jsonNext steps
After emitting, choose the database workflow:
- use
prisma-next db initfor first-time bootstrap - use
prisma-next db updatefor direct reconciliation - use
prisma-next migration planfor checked-in migrations - use
prisma-next db verifyto check drift