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-access

Actions

ActionDescription
showList all API keys
createCreate a new API key
deleteDelete an API key

Options

OptionDescription
-h, --helpDisplay help message
-e, --environmentThe environment ID (required for show and create commands)
-a, --apikeyThe API key ID (required for delete command)
-n, --nameDisplay name for the API key (optional for create command)

Examples

List API keys

npx prisma platform apikey show --environment $ENVIRONMENT_ID --early-access

Create an API key

npx prisma platform apikey create --environment $ENVIRONMENT_ID --name "production-key" --early-access

Delete an API key

npx prisma platform apikey delete --apikey $API_KEY_ID --early-access

On this page