Skills
Skill 8 of 9
Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.
2 minutes · 393 words · 12 sections
Install
npx skills add prisma/skills --skill prisma-postgresnpx skills add prisma/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Guidance for creating, managing, and integrating Prisma Postgres across interactive and programmatic workflows.
Reference this skill when:
create-dbprisma postgres link@prisma/management-api-sdk in TypeScript/JavaScript| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | CLI Provisioning | CRITICAL | create-db-cli |
| 2 | Management API | CRITICAL | management-api |
| 3 | Management API SDK | HIGH | management-api-sdk |
| 4 | Console and Connections | HIGH | console-and-connections |
create-db-cli - instant databases and current CLI flags (--ttl, --copy, --quiet, --open)management-api - service token and OAuth API workflowsmanagement-api-sdk - typed SDK usage with token storageconsole-and-connections - Console operations, prisma postgres link, direct TCP connections, and serverless-driver choicesUse Prisma Console for manual setup and operations:
https://console.prisma.ioUse create-db when you need a database immediately:
npx create-db@latestAliases:
npx create-pg@latest
npx create-postgres@latestFor app integrations, you can also use the programmatic API (create() / regions()) from the create-db npm package.
Temporary databases auto-delete after ~24 hours unless claimed.
For databases that belong to a Project (not throwaway create-db databases), use @prisma/cli:
npx -y @prisma/cli@latest database create --help
npx -y @prisma/cli@latest database list --json
npx -y @prisma/cli@latest database connection create db_123
npx -y @prisma/cli@latest database usage db_123
npx -y @prisma/cli@latest database backup list db_123database create and database connection create print a one-time connection URL; store it immediately. Destructive commands (remove, restore) require exact --confirm <id>.
For automation, prefer --json --no-interactive, resolve ids before mutations, and verify the installed command’s help because this CLI is beta.
Use prisma postgres link when the database already exists and you want to wire a local project to it:
prisma postgres linkFor CI or other non-interactive environments:
prisma postgres link --api-key "<your-api-key>" --database "db_..."This flow updates your local .env with DATABASE_URL, then you can run prisma generate and prisma migrate dev.
Use API endpoints on:
https://api.prisma.io/v1Explore the schema and endpoints using:
https://api.prisma.io/v1/dochttps://api.prisma.io/v1/swagger-editorAuth options:
Install and use:
npm install @prisma/management-api-sdkUse createManagementApiClient for existing tokens, or createManagementApiSdk for OAuth + token refresh.
The SDK exposes typed workspace service-token list, create, and revoke routes. A newly created token value is returned exactly once. Let the installed SDK types or OpenAPI document settle exact beta endpoint shapes.
Detailed guidance lives in:
references/console-and-connections.md
references/create-db-cli.md
references/management-api.md
references/management-api-sdk.mdStart with references/create-db-cli.md for fast setup, then switch to references/management-api.md or references/management-api-sdk.md when you need programmatic provisioning.
Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases, working in Prisma Console, provisioning with create-db/create-pg/create-postgres, or integrating programmatic provisioning with service tokens or OAuth.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
prisma-postgres/SKILL.mdmain, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. One layout observed: */SKILL.md.h1 and no skipped levels:/prisma/skills.md, and each skill at its own .md URL.4 files · 11 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 8.
Documentation the agent loads on demand, rather than up front.