apps/docs/content/docs/cli/console/environment.mdx
The prisma platform environment command manages environments within Prisma Console projects.
prisma platform environment [action] [options] --early-access
| Action | Description |
|---|---|
show | List all environments |
create | Create a new environment |
delete | Delete an environment |
| 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) |
npx prisma platform environment show --project $PROJECT_ID --early-access
npx prisma platform environment create --project $PROJECT_ID --name "production" --early-access
npx prisma platform environment delete --environment $ENVIRONMENT_ID --early-access