Prisma ORM v7.7.0: the new prisma bootstrap command
Prisma ORM v7.7.0: the new prisma bootstrap command
ORM
prisma bootstrap command
Prisma ORM v7.7.0 introduces a new prisma bootstrap command that sequences the full Prisma Postgres setup into a single interactive flow.
It detects the current project state and only runs the steps that are needed:
- Init or scaffold: In an empty directory, offers a choice of 10 starter templates from
prisma-examples. In an existing project without a schema, it runsprisma init. - Link: Authenticates via the browser and connects to a Prisma Postgres database. Skips if the project is already linked.
- Install dependencies: Detects the package manager and offers to install missing
@prisma/client,prisma, anddotenv. - Migrate: Runs
prisma migrate devif the schema contains models. - Generate: Runs
prisma generate. - Seed: Runs
prisma db seedif a seed script is configured.
Each side-effecting step prompts for confirmation, and re-running the command skips any steps that are already complete.
This feature shipped in #29374 and #29424.
Basic usage
npx prisma@latest bootstrapWith a starter template
npx prisma@latest bootstrap --template nextjsNon-interactive (CI)
npx prisma@latest bootstrap --api-key "$PRISMA_API_KEY" --database "db_abc123"Enterprise support
Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.
With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.