create-db is a CLI tool (v1.2.1) that instantly provisions a temporary Prisma Postgres database for development or testing. It integrates with the Prisma Data Platform, allowing users to claim and persist the temporary database into a permanent project. The tool is maintained by Prisma, releases are frequent (semver), and it differentiates by providing ephemeral databases without manual cloud setup, ideal for CI/CD and rapid prototyping. Requires Node 18+ and a Prisma Data Platform account for persistence.
npm install create-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a temporary Prisma Postgres database and then claims it to a permanent project.
Ensure API key has required scopes in Prisma Data Platform settings.
Replace `region` with `provider: 'aws'` or similar.
Access `db.url` instead of using the result directly.
Call `claimDb` within 24 hours to persist the database.
Run `npm install create-db` and ensure you are using ESM imports.
Use `import { createDb } from 'create-db'` or set `"type": "module"` in package.json.Generate a new API key with 'databases:create' and 'databases:claim' scopes in Prisma Data Platform.