
prisma-cli-format
✓ Official★ 8by prisma · part of prisma/cursor-plugin
prisma format. Reference when using this Prisma feature.
prisma format. Reference when using this Prisma feature.
Inspect the full instructions your agent will receiveExpandCollapse
This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.
name: prisma-cli-format description: prisma format. Reference when using this Prisma feature. license: MIT metadata: author: prisma version: "7.0.0"
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
| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
Examples
Format default schema
prisma formatFormat specific schema
prisma format --schema=./custom/schema.prismaBehavior
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
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-formatRun this in your project — your agent picks the skill up automatically.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.