prisma format. Reference when using this Prisma feature.
Formats your Prisma schema file.
prisma format [options]
fields, references)| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
prisma format
prisma format --schema=./custom/schema.prisma
prisma format modifies the file in place. It is equivalent to "Prettier for Prisma schemas" but also has semantic understanding to fix/add missing schema definitions.
Most Prisma editor extensions (VS Code, WebStorm) run prisma format automatically on save. This command is useful for: