DB commands
db (Prisma CLI v7) (/docs/cli/v7/db)
pull
Sync your Prisma schema from an existing database with prisma db pull. Introspect tables, relations, and generate Prisma models automatically. Applies to Prisma CLI v7.
push
Push Prisma schema changes directly to the database with prisma db push. Ideal for prototyping and local dev. No migration history required. Applies to Prisma CLI v7.
seed
Seed your database with test or initial data using prisma db seed. Run custom seed scripts. Pass arguments with -- delimiter. Applies to Prisma CLI v7.
execute
Execute SQL scripts on your database with prisma db execute. Use --file or --stdin. Bypasses migrations table. Supports PostgreSQL, MySQL, SQLite. Applies to Prisma CLI v7.