ev env

Usage

ev env
ev env create <name>
ev env delete <name>

Description

ev env manages the environments within your project. Environments are independent slots for secrets — typically dev, staging, and prod, but you can create as many as you need.

ev env

Running ev env with no subcommand lists all environments for the current project:

dev      (default)
staging
prod

ev env create

Creates a new environment. The environment starts empty — use ev push or ev promote to populate it.

ev env create staging

ev env delete

Deletes an environment and all its releases. This is irreversible. ev asks for confirmation and requires you to type the environment name:

Delete environment "staging" and all its history? Type "staging" to confirm: staging
Environment deleted.

Examples

List all environments:

ev env

Create a staging environment:

ev env create staging

Create a preview environment for a feature branch:

ev env create feature-payments

Delete an environment after a feature is merged:

ev env delete feature-payments

On this page