apps/docs/content/docs/console/getting-started.mdx
This guide walks you through setting up your Console account and creating your first project.
You now have a Console account with a default workspace.
When you create an account, a default workspace is automatically created for you. You can create additional workspaces for different teams or organizations.
To create an additional workspace:
List all workspaces:
npx prisma platform workspace show --early-access
Projects organize your databases and environments within a workspace.
npx prisma platform project create --workspace $WORKSPACE_ID --name "My Project" --early-access
Resources are the actual databases or environments within your project.
npx prisma platform environment create --project $PROJECT_ID --name "production" --early-access
Connection strings authenticate your application's requests to Prisma products.
npx prisma platform apikey create --environment $ENVIRONMENT_ID --name "production-key" --early-access
Add the connection string to your .env file:
# For Accelerate
DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=YOUR_API_KEY"
# For Optimize
OPTIMIZE_API_KEY="YOUR_API_KEY"