Prisma ORM 8 is here.Read the docs

auth

Sign in to your Prisma account from the CLI, sign out, and manage workspace sessions.

Use auth commands to manage authentication for the platform commands. Signing in opens a browser flow and stores a session. Every platform command in that environment reuses that session.

Usage

bunx prisma@latest auth login
bunx prisma@latest auth whoami

Commands

CommandDescription
auth loginLog in to your Prisma platform account (browser flow)
auth logoutClear stored authentication credentials
auth whoamiShow the authenticated user and accessible workspace
auth workspace listList your workspace sessions
auth workspace use [id-or-name]Make one of your workspace sessions current
auth workspace logout <id-or-name>End one workspace session

auth login signs you in through the browser. Afterward, anything running in that environment inherits the session, including coding agents. For CI, set PRISMA_SERVICE_TOKEN instead.

On this page