Getting Started
Quick start guide for setting up and using the Prisma Console
This guide walks you through setting up your Console account and creating your first project.
Prerequisites
- A GitHub account (for authentication)
- A Prisma project (optional, but recommended)
Step 1: Create your account
- Go to console.prisma.io/login
- Click Sign in with GitHub
- Authorize Prisma Console to access your GitHub account
You now have a Console account with a default workspace.
Step 2: Set up a workspace
When you create an account, a default workspace is automatically created for you. You can create additional workspaces for different teams or organizations.
Create a workspace (optional)
To create an additional workspace:
- Click the workspace dropdown in the top navigation
- Click Create Workspace
- Enter a name for your workspace
- Click Create
Using the CLI
List all workspaces:
npx prisma platform workspace show --early-accessStep 3: Create a project
Projects organize your databases and environments within a workspace.
Using the Console web interface
- Navigate to your workspace
- Click Create Project
- Enter a project name
- Click Create
Using the CLI
npx prisma platform project create --workspace $WORKSPACE_ID --name "My Project" --early-accessStep 4: Create a resource
Resources are the actual databases or environments within your project.
For Prisma Postgres
- Navigate to your project
- Click Create Database
- Enter a database name
- Select a region
- Click Create
For Accelerate
- Navigate to your project
- Click Create Environment
- Enter an environment name (e.g., "production")
- Click Create
Using the CLI
npx prisma platform environment create --project $PROJECT_ID --name "production" --early-accessStep 5: Generate an API key
API keys authenticate your application's requests to Prisma products.
Using the Console web interface
- Navigate to your resource (database or environment)
- Click API Keys tab
- Click Create API Key
- Enter a name for the key
- Copy the API key and store it securely
- Click Done
Using the CLI
npx prisma platform apikey create --environment $ENVIRONMENT_ID --name "production-key" --early-accessStep 6: Use the API key in your application
Add the API key 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"Next steps
- Learn more about Console concepts
- Explore database metrics
- View API key management
- Check out the CLI reference