Skip to content

Workspaces and tokens

Everything on Prisma’s data platform belongs to a workspace: its projects, with their Postgres databases and Compute apps, its members, and its bill.

Alchemy deploys with a service token, created in the Prisma Console under workspace settings. A service token belongs to the workspace, not to a person, and Alchemy deploys into the workspace it belongs to. Store it in a profile:

Terminal window
alchemy profile edit --add Prisma

See Setup.

A stage decides what you deploy. A profile decides where. To keep production’s members and bill apart, give it its own workspace, token and profile:

Terminal window
alchemy profile create prod
alchemy profile edit --profile prod --add Prisma
alchemy deploy --stage prod --profile prod

The service token manages the workspace. An app only connects to its database, with a connection string that reaches that one database. See Connections.

With CI=true, Alchemy skips the profile and reads PRISMA_SERVICE_TOKEN from the environment. See CI.