appservices apps init
On this page
Initialize an App Services App in your current working directory (alias: initialize)
Initializes a new App Services App by saving your configuration files in your current working directory.
You can specify a "--remote" flag to initialize an App Services App from an existing app; if you do not specify a "--remote" flag, the CLI will initialize a default App Services App.
NOTE: To create a new App Services App and have it deployed, use "app create".
Syntax
appservices apps init [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--remote | string | false | Specify the name or ID of a remote app to clone |
-n, --name | string | false | Name your new app (Note: This name will be used internally and cannot be changed later. Names must only include: ASCII letters, numbers, underscores ( _ ), or dashes ( - )) |
--provider-region | string | false | Select the app's provider region [Learn more] |
-d, --deployment-model | string | false | Select the app's deployment model (Default value: <none>; Allowed values: GLOBAL, LOCAL) [Learn more] |
-e, --environment | string | false | Select the app's environment (Default value: <none>; Allowed values: development, testing, qa, production) [Learn more] |
--project | string | false | Specify the ID of a MongoDB Atlas project |
-h, --help | false | help for init |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
--profile | string | false | Specify your profile (Default value: "default") [Learn more] |
--telemetry | string | false | Enable/Disable CLI usage tracking for your current profile (Default value: "on"; Allowed values: "on", "off") |
-o, --output-target | string | false | Write CLI output to the specified filepath |
-f, --output-format | string | false | Set the CLI output format (Default value: <blank>; Allowed values: <blank>, "json") |
--disable-colors | false | Disable all CLI output styling (e.g. colors, font styles, etc.) | |
-y, --yes | false | Automatically proceed through CLI commands by agreeing to any required user prompts |