Skip to main content
Manage deployment environments for Flash applications. Environments are isolated deployment contexts (like dev, staging, production) within a Flash app.
Command

Subcommands

SubcommandDescription
listShow all environments for an app
createCreate a new environment
getShow details of an environment
deleteDelete an environment and its resources

env list

Show all available environments for an app.
Command

Example

Flags

--app, -a
string
Flash app name. Auto-detected from current directory if not specified.

Output


env create

Create a new deployment environment.
Command

Example

Arguments

NAME
string
required
Name for the new environment (e.g., dev, staging, production).

Flags

--app, -a
string
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
string
required
Name of the environment to inspect.

Flags

--app, -a
string
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
string
required
Name of the environment to delete.

Flags

--app, -a
string
Flash app name. Auto-detected from current directory if not specified.

Process

  1. Shows environment details and resources to be deleted.
  2. Prompts for confirmation (required).
  3. Undeploys all associated endpoints.
  4. Removes all associated network volumes.
  5. Deletes the environment from the app.
This operation is irreversible. All endpoints, volumes, and configuration associated with the environment will be permanently deleted.

Environment states

StateDescription
PENDINGEnvironment created but not deployed
DEPLOYINGDeployment in progress
DEPLOYEDSuccessfully deployed and running
FAILEDDeployment or health check failed
DELETINGDeletion in progress

Common workflows

Three-tier deployment

Feature branch testing