apikey
Create, list, and delete API keys for Prisma Console environments
The prisma platform apikey command manages API keys for Prisma Console environments.
Usage
prisma platform apikey [action] [options] --early-accessActions
| Action | Description |
|---|---|
show | List all API keys |
create | Create a new API key |
delete | Delete an API key |
Options
| Option | Description |
|---|---|
-h, --help | Display help message |
-e, --environment | The environment ID (required for show and create commands) |
-a, --apikey | The API key ID (required for delete command) |
-n, --name | Display name for the API key (optional for create command) |
Examples
List API keys
npx prisma platform apikey show --environment $ENVIRONMENT_ID --early-accessCreate an API key
npx prisma platform apikey create --environment $ENVIRONMENT_ID --name "production-key" --early-accessDelete an API key
npx prisma platform apikey delete --apikey $API_KEY_ID --early-access