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-accessActions
| Action | Description |
|---|---|
show | List all environments |
create | Create a new environment |
delete | Delete an environment |
Options
| Option | Description |
|---|---|
-h, --help | Display help message |
-p, --project | The project ID (required for show and create commands) |
-e, --environment | The environment ID (required for delete command) |
-n, --name | Display name for the environment (optional for create command) |
Examples
List environments
npx prisma platform environment show --project $PROJECT_ID --early-accessCreate an environment
npx prisma platform environment create --project $PROJECT_ID --name "production" --early-accessDelete an environment
npx prisma platform environment delete --environment $ENVIRONMENT_ID --early-access