Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

auth

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.

title="bun"
bunx prisma auth login

bunx prisma auth whoami
pnpm
pnpm prisma auth login
pnpm prisma auth whoami
yarn
yarn prisma auth login
yarn prisma auth whoami
npm
npx prisma auth login
npx prisma auth whoami
Command Description
auth login Log in to your Prisma platform account (browser flow)
auth logout Clear stored authentication credentials
auth whoami Show the authenticated user and accessible workspace
auth workspace list List 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.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu