dev, staging, production) within a Flash app.
Command
Subcommands
| Subcommand | Description |
|---|---|
list | Show all environments for an app |
create | Create a new environment |
get | Show details of an environment |
delete | Delete an environment and its resources |
env list
Show all available environments for an app.Command
Example
Flags
Flash app name. Auto-detected from current directory if not specified.
Output
env create
Create a new deployment environment.Command
Example
Arguments
Name for the new environment (e.g.,
dev, staging, production).Flags
Flash app name. Auto-detected from current directory if not specified.
Notes
- If the app doesn’t exist, it’s created automatically.
- Environment names must be unique within an app.
- Newly created environments have no active build until first deployment.
You don’t always need to create environments explicitly. Running
flash deploy --env <name> creates the environment automatically if it doesn’t exist.env get
Show detailed information about a deployment environment.Command
Example
Arguments
Name of the environment to inspect.
Flags
Flash app name. Auto-detected from current directory if not specified.
Output
env delete
Delete a deployment environment and all its associated resources.Command
Examples
Arguments
Name of the environment to delete.
Flags
Flash app name. Auto-detected from current directory if not specified.
Process
- Shows environment details and resources to be deleted.
- Prompts for confirmation (required).
- Undeploys all associated endpoints.
- Removes all associated network volumes.
- Deletes the environment from the app.
Environment states
| State | Description |
|---|---|
| PENDING | Environment created but not deployed |
| DEPLOYING | Deployment in progress |
| DEPLOYED | Successfully deployed and running |
| FAILED | Deployment or health check failed |
| DELETING | Deletion in progress |
Common workflows
Three-tier deployment
Feature branch testing
Related commands
flash deploy- Deploy to an environmentflash app- Manage applicationsflash undeploy- Remove specific endpoints