environment

Create, list, and delete environments within Prisma Console projects

The prisma platform environment command manages environments within Prisma Console projects.

Usage

prisma platform environment [action] [options] --early-access

Actions

ActionDescription
showList all environments
createCreate a new environment
deleteDelete an environment

Options

OptionDescription
-h, --helpDisplay help message
-p, --projectThe project ID (required for show and create commands)
-e, --environmentThe environment ID (required for delete command)
-n, --nameDisplay name for the environment (optional for create command)

Examples

List environments

npx prisma platform environment show --project $PROJECT_ID --early-access

Create an environment

npx prisma platform environment create --project $PROJECT_ID --name "production" --early-access

Delete an environment

npx prisma platform environment delete --environment $ENVIRONMENT_ID --early-access

On this page