prisma-cli-formatद्वारा prisma

prisma format. Reference when using this Prisma feature.

npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-format

prisma format

Formats your Prisma schema file.

Command

prisma format [options]

What It Does

  • Fixes formatting (indentation, spacing)
  • Adds missing back-relations (e.g., adds the other side of a relation)
  • Adds missing relation arguments (e.g., fields, references)
  • Sorts fields and attributes (opinionated)

Options

OptionDescription
--schemaPath to schema file
--configCustom path to your Prisma config file

Examples

Format default schema

prisma format

Format specific schema

prisma format --schema=./custom/schema.prisma

Behavior

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.

Use in Editor

Most Prisma editor extensions (VS Code, WebStorm) run prisma format automatically on save. This command is useful for:

  • CI pipelines (check formatting)
  • CLI-based workflows
  • Fixing large schema refactors

NotebookLM Web Importer

एक क्लिक में वेब पेज और YouTube वीडियो NotebookLM में आयात करें। 200,000+ उपयोगकर्ताओं द्वारा विश्वसनीय।

Chrome एक्सटेंशन इंस्टॉल करें