npx skills add ...
npx skills add prisma/cursor-plugin --skill prisma-cli-db-execute
npx skills add prisma/cursor-plugin --skill prisma-cli-db-execute
prisma db execute. Reference when using this Prisma feature.
Execute native commands (SQL) to your database.
--file) or stdin (--stdin)migrate diff| Option | Description |
|---|---|
--file | Path to a file containing the script to execute |
--stdin | Use terminal standard input as the script |
--url | Override the datasource URL from the Prisma config file |
--config | Custom path to your Prisma config file |
migrate diff outputPipe the output of migrate diff directly to the database:
Uses datasource from prisma.config.ts:
migrate diff scriptsprisma studio to view data.export default defineConfig({
datasource: {
url: env('DATABASE_URL'),
},
})