## zowe › config › auto-init

Automatically generate a config from APIML

#### Usage

zowe config auto-init [options]

#### Automatic Config Initialization Options

- `--user-config` | `--uc` (boolean)

  - Save config in the user layer

    Default value: false

- `--global-config` | `--gc` (boolean)

  - Save config in the global layer

    Default value: false

- `--dry-run` | `--dr` | `--dry` (boolean)

  - Display the outcome of the initialization without saving

- `--edit` | `-e` (boolean)

  - Open in editor after initializing the configuration

- `--overwrite` | `--ow` (boolean)

  - Replaces an existing configuration with a new configuration

    Default value: false

- `--for-sure` | `-f` (boolean)

  - Confirms the overwrite option

    Default value: false

#### APIML Connection Options

- `--host` | `-H` (string)

  - Host name of the mainframe running the API Mediation Layer.

- `--port` | `-P` (number)

  - Port number of API Mediation Layer on the mainframe.

- `--user` | `-u` (string)

  - User name to authenticate to the API Mediation Layer on the mainframe.

- `--password` | `--pass` | `--pw` (string)

  - Password to authenticate to the API Mediation Layer on the mainframe.

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API Mediation Layer. Omit this option to use the default token type, which is provided by 'zowe auth login'.

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API Mediation Layer.

- `--cert-file` (local file path)

  - The file path to a certificate file to use to authenticate to the API Mediation Layer

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use to authenticate to the API Mediation Layer

#### Profile Options

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.