Backend & APISûr100100/100

Prisma CLI Format (Prisma)

prisma format. Reference when using this Prisma feature.

ou envoie-le directement à ton agent.

Installer dans ton projet

$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs prisma-cli-format__prisma-cursor-plugin__skills-c0d8d26dab03
Prisma
prisma/cursor-plugin
Contenu à copier
---
name: prisma-cli-format
description: prisma format. Reference when using this Prisma feature.
license: MIT
metadata:
  origin: Prisma
  author: prisma
  version: "7.0.0"
---

# prisma format

Formats your Prisma schema file.

## Command

```bash
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

```bash
prisma format
```

### Format specific schema

```bash
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
Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.

Ce que fait Prisma CLI Format (Prisma)

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)

Comment utiliser Prisma CLI Format (Prisma)

1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.

Déclencheurs pour Prisma CLI Format (Prisma)

Dis simplement à ton agent quelque chose comme :

Applique le skill prisma-cli-format__prisma-cursor-plugin__skills-c0d8d26dab03 à cette tâche
Utilise prisma-cli-format__prisma-cursor-plugin__skills-c0d8d26dab03 pour améliorer cette implémentation
Passe en revue ce sujet avec prisma-cli-format__prisma-cursor-plugin__skills-c0d8d26dab03

Skills liés à Prisma CLI Format (Prisma)