Skip to main content

wf create appenv

wf create appenv

Creates an application environment in the workspace

Synopsis

Lets you create an application environment in an existing cluster or from a cluster plan

wf create appenv [flags]

Examples


# Create an application environment named dev belonging to myapp in cluster cl1
$ wf create appenv --app myapp --env dev --cluster cl1 --stage nonprod

# Create an application environment named dev using cluster plan plan1 and cloud region eu-west-2
$ wf create appenv --app myapp --env dev --plan plan1 --stage nonprod --region eu-west-2

# Create an application environment named dev using cluster plan plan1 and cloud region eu-west-2
# using a specific cluster name 'devhost' which will be created using the plan if it does not
# already exist:
$ wf create appenv --app myapp --env dev --plan plan1 --stage nonprod --region eu-west-2

# Create an application environment named dev using cluster plan plan1 and cloud access config azure-nonprod
$ wf create appenv --app myapp --env dev --plan plan1 --stage nonprod --cloud-access-config azure-nonprod

Options

  -a, --app string                   application this environment belongs to
--cloud-access-config string the cloud access config to use
-c, --cluster string the name of the cluster on which the application environemnt should be hosted
--dry-run shows the resource but does not apply or create (defaults: false)
-e, --env string name of the app environment to create
-h, --help help for appenv
-p, --plan string Plan that the application environment cluster will be templated from
--region string cloud region in which to create cluster, if specifying a plan
-s, --stage string stage of this applcation environment, e.g. 'nonprod' or 'prod'

Options inherited from parent commands

      --debug              Indicates we should use debug / trace logging (default: false)
--force Used to force an operation to happen (default: false)
--no-wait Indicates we should not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table,template) (default "table")
--profile string Use a profile other than your default for this command
--show-headers Indicates we should display headers on table out (default true)
--verbose Enables verbose logging for debugging purposes (default: false)
-w, --workspace string The workspace you are operating within

SEE ALSO