Prompt Buddy logoPrompt Buddy

prisma · Prisma Docs

Prisma Postgres (/docs/prisma-orm/quickstart/prisma-postgres)

A step-by-step guide to setting up a TypeScript project, installing necessary Prisma dependencies, configuring ESM support, initializing the Prisma ORM, and connecting it to a Prisma Postgres database instance.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Prisma Postgres (/docs/prisma-orm/quickstart/prisma-postgres)

A step-by-step guide to setting up a TypeScript project, installing necessary Prisma dependencies, configuring ESM support, initializing the Prisma ORM, and connecting it to a Prisma Postgres database instance.

When To Use

Use when you need to initialize a new TypeScript project with Prisma ORM and connect it to a managed Prisma Postgres database instance.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/prisma-postgres-docs-orm-quickstart-workflow-guide.mdA guide for setting up and using Prisma Postgres, a managed PostgreSQL database that integrates with Prisma ORM and Prisma Studio.Questions about a guide for setting up and using Prisma Postgres, a managed PostgreSQL database that integrates with Prisma ORM and P...
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-shell-com.shellShell commands for initializing a new directory and setting up a Prisma Postgres project.Exact payloads, commands, or snippets shown in Shell commands for initializing a new directory and setting up a Prisma Postgres project.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-setup-com.bashBash commands to initialize a new project and install necessary TypeScript dependencies for a Prisma Postgres quickstart.Exact payloads, commands, or snippets shown in Bash commands to initialize a new project and install necessary TypeScript dependencies for a Prisma Postgres quickst...
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-setup-com-2.bashBash commands to initialize a new project and install necessary TypeScript dependencies for Prisma Postgres.Exact payloads, commands, or snippets shown in Bash commands to initialize a new project and install necessary TypeScript dependencies for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-setup-com-3.bashBash commands to initialize a project and install necessary TypeScript dependencies for a Prisma Postgres quickstart.Exact payloads, commands, or snippets shown in Bash commands to initialize a project and install necessary TypeScript dependencies for a Prisma Postgres quickstart.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bun-project-initiali.bashBash commands to initialize a new Bun project and install necessary TypeScript dependencies for Prisma Postgres.Exact payloads, commands, or snippets shown in Bash commands to initialize a new Bun project and install necessary TypeScript dependencies for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-installation-command.bashBash commands to install prisma, pg adapter, and client dependencies for Prisma Postgres.Exact payloads, commands, or snippets shown in Bash commands to install prisma, pg adapter, and client dependencies for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-setup-dependencies.bashBash commands to install Prisma, PostgreSQL adapter, and client dependencies using pnpm.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, PostgreSQL adapter, and client dependencies using pnpm.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-setup-commands.bashBash commands to install Prisma, the PostgreSQL adapter, and necessary dependencies for a Prisma Postgres project.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, the PostgreSQL adapter, and necessary dependencies for a Prisma Postgres project.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bun-installation-com.bashBash commands to install Prisma, PostgreSQL types, and the Prisma client with the pg adapter using the Bun package manager.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, PostgreSQL types, and the Prisma client with the pg adapter using the Bun package ma...
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-configura.jsonA JSON configuration object containing compiler options and module resolution settings for a Prisma Postgres setup.Exact payloads, commands, or snippets shown in A JSON configuration object containing compiler options and module resolution settings for a Prisma Postgres setup.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-configura-2.jsonA JSON configuration object for setting up a Prisma Postgres connection and environment.Exact payloads, commands, or snippets shown in A JSON configuration object for setting up a Prisma Postgres connection and environment.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-npx-comma.bashA bash command demonstrating how to initialize or run Prisma with a Prisma Postgres database using npx.Exact payloads, commands, or snippets shown in A bash command demonstrating how to initialize or run Prisma with a Prisma Postgres database using npx.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-pnpm-dlx-.bashA bash command using pnpm dlx to execute the Prisma CLI for a Prisma Postgres quickstart setup.Exact payloads, commands, or snippets shown in A bash command using pnpm dlx to execute the Prisma CLI for a Prisma Postgres quickstart setup.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-yarn-dlx-.bashA bash command using yarn dlx to initialize the Prisma Postgres quickstart process.Exact payloads, commands, or snippets shown in A bash command using yarn dlx to initialize the Prisma Postgres quickstart process.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bunx-prisma-init-com.bashA bash command using bunx to initialize Prisma with the Prisma Postgres driver.Exact payloads, commands, or snippets shown in A bash command using bunx to initialize Prisma with the Prisma Postgres driver.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-init-command.bashA bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-init-command-2.bashA bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-init-command-3.bashA bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma project with a specific output directory for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-init-bunx-command.bashA bash command to initialize a Prisma project using bunx with a specific output directory.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma project using bunx with a specific output directory.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-typescript-config-de.typescriptA TypeScript configuration file using defineConfig to set the Prisma schema path and migration settings for Prisma Postgres.Exact payloads, commands, or snippets shown in A TypeScript configuration file using defineConfig to set the Prisma schema path and migration settings for Prisma Po...
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-definition.prismaA Prisma schema file defining a datasource provider for Prisma Postgres using PostgreSQL.Exact payloads, commands, or snippets shown in A Prisma schema file defining a datasource provider for Prisma Postgres using PostgreSQL.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-create-db.bashA bash command used to initialize a database using the npx create-db utility for Prisma Postgres.Exact payloads, commands, or snippets shown in A bash command used to initialize a database using the npx create-db utility for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-pnpm-dlx-create-db.bashA bash command to initialize a Prisma Postgres database using pnpm dlx create-db.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma Postgres database using pnpm dlx create-db.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-create-db-command.bashA bash command using yarn dlx to initialize a Prisma Postgres database.Exact payloads, commands, or snippets shown in A bash command using yarn dlx to initialize a Prisma Postgres database.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bunx-create-db-comma.bashA bash command using bunx to initialize a Prisma Postgres database.Exact payloads, commands, or snippets shown in A bash command using bunx to initialize a Prisma Postgres database.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-definition-2.prismaA Prisma schema file defining User and Post models configured for a Prisma Postgres database connection.Exact payloads, commands, or snippets shown in A Prisma schema file defining User and Post models configured for a Prisma Postgres database connection.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-migrate-dev-init.bashA bash command to initialize the database schema using Prisma Migrate for a Prisma Postgres instance.Exact payloads, commands, or snippets shown in A bash command to initialize the database schema using Prisma Migrate for a Prisma Postgres instance.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-migrate-dev-init-com.bashA bash command to initialize the database schema using prisma migrate dev.Exact payloads, commands, or snippets shown in A bash command to initialize the database schema using prisma migrate dev.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-migrate-dev-init-2.bashA bash command to initialize the database schema using prisma migrate dev.Exact payloads, commands, or snippets shown in A bash command to initialize the database schema using prisma migrate dev.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bunx-migrate-dev-ini.bashA bash command to run a Prisma database migration using bunx for a Prisma Postgres setup.Exact payloads, commands, or snippets shown in A bash command to run a Prisma database migration using bunx for a Prisma Postgres setup.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-generate-command.bashA bash command to generate the Prisma client for a Prisma Postgres database.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client for a Prisma Postgres database.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-generate-command-2.bashA bash command to generate the Prisma client using pnpm dlx.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client using pnpm dlx.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-generate-command-3.bashA bash command to generate the Prisma client using yarn dlx.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client using yarn dlx.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bunx-generate-comman.bashA bash command using bunx to generate the Prisma client for a Prisma Postgres setup.Exact payloads, commands, or snippets shown in A bash command using bunx to generate the Prisma client for a Prisma Postgres setup.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-typescript-client-ad.typescriptA TypeScript code snippet demonstrating how to initialize a PrismaClient using the PrismaPg adapter for a Prisma Postgres connection.Exact payloads, commands, or snippets shown in A TypeScript code snippet demonstrating how to initialize a PrismaClient using the PrismaPg adapter for a Prisma Post...
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-typescript-quickstar.typescriptA TypeScript script demonstrating how to create a new user with associated posts using the Prisma Postgres client.Exact payloads, commands, or snippets shown in A TypeScript script demonstrating how to create a new user with associated posts using the Prisma Postgres client.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-execute-s.bashA bash command to execute a TypeScript script using npx tsx for the Prisma Postgres quickstart.Exact payloads, commands, or snippets shown in A bash command to execute a TypeScript script using npx tsx for the Prisma Postgres quickstart.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-execution.bashThe bash command used to execute the Prisma Postgres quickstart script using pnpm and tsx.Exact payloads, commands, or snippets shown in The bash command used to execute the Prisma Postgres quickstart script using pnpm and tsx.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-quickstart-execution-2.bashThe bash command used to execute the Prisma Postgres quickstart script using yarn dlx and tsx.Exact payloads, commands, or snippets shown in The bash command used to execute the Prisma Postgres quickstart script using yarn dlx and tsx.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-bunx-tsx-script-exec.bashA bash command to execute a TypeScript script using the bunx runner with the bun runtime for Prisma Postgres.Exact payloads, commands, or snippets shown in A bash command to execute a TypeScript script using the bunx runner with the bun runtime for Prisma Postgres.
examples/prisma-postgres-docs-orm-quickstart-prisma-postgres-studio-launch-comman.shellA shell command to launch the Prisma Studio GUI for managing a Prisma Postgres database.Exact payloads, commands, or snippets shown in A shell command to launch the Prisma Studio GUI for managing a Prisma Postgres database.

What This Skill Covers

  • Prisma Postgres (/docs/prisma-orm/quickstart/prisma-postgres)
  • Main sections: npm, pnpm, yarn, bun, npm.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://www.prisma.io/docs/prisma-orm/quickstart/prisma-postgres