create-pg (v1.2.1) is a CLI tool by Prisma that creates a temporary Prisma Postgres database with a single command. It supports both npm and npx usage, automatically generating a connection string and optional .env file. The database can be claimed and persisted in a Prisma Data Platform project. Updates are infrequent, and it's designed for rapid prototyping and CI environments where ephemeral databases are useful.
npm install create-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantly create a temporary Prisma Postgres database using npx.
Use the claim command (create-pg claim) to persist the database in your Prisma Data Platform project before the expiration.
Run 'npx prisma login' before claiming, or use the --temp flag to skip claiming.
Ensure internet connectivity and no firewall blocking api.prisma.cloud.
Use environment variables or .env files and add them to .gitignore.
Use 'npx create-pg' instead of node or npm start.
Run 'npx prisma login' first and follow the prompts to log in.
Check your internet connection and try again later. Use 'npx create-pg --temp' for a temporary database as a fallback.
No dependency data recorded yet.