Subchapter 8.1
references/console-and-connections.mdMarkdown2 KBView on GitHub
Use Prisma Console workflows for project visibility, data inspection, and connection setup.
HIGH
Many Prisma Postgres tasks are quickest in the Console: viewing Studio data, checking metrics, and retrieving connection details. This avoids unnecessary API or CLI work for simple operational tasks.
https://console.prisma.io.You can also inspect data locally:
npx prisma studioIf the Prisma Postgres database already exists, link the local project instead of provisioning a new one:
prisma postgres linkFor CI or non-interactive usage:
prisma postgres link --api-key "<your-api-key>" --database "db_..."This command updates or creates .env with DATABASE_URL. If the project is already linked, use --force to re-link. After linking, run prisma generate, then prisma migrate dev if you need to apply the schema.
For direct PostgreSQL tools and drivers:
DATABASE_URL for pg and @prisma/adapter-pg.sslmode=require.Typical direct TCP format:
DATABASE_URL="postgres://identifier:key@db.prisma.io:5432/postgres?sslmode=require"Management API connection responses expose both endpoints.direct (db.prisma.io:5432) and endpoints.pooled (pooled.db.prisma.io:5432); prefer those fields over the deprecated flat connectionString. Connection secrets are shown once at creation (one-time view); store them immediately.
@prisma/adapter-pg with the direct TCP URL above.@prisma/adapter-ppg with @prisma/ppg only when you specifically need the Prisma Postgres serverless driver.