dev config init
Write the application's config and CLI runtime config
- Command version
0.0.0- Command configuration
cli:cli.config.init@0.0.0
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
--shell-adapter | string one of pwsh, sh | No | Shell adapter to use for adapter-backed commands (default: host detection when omitted) | |
--app-root | string | No | App root path for app configuration and runtime pinning (default: preserve existing value, otherwise .) |
It also takes the global arguments.
Output
It answers with a init.initialized.
Types
init.initialized
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
initialized | boolean | Yes | Always true: the configuration files were written | |
updated | boolean | Yes | Whether the run changed anything: a configuration file that did not exist was written, or the runtime configuration it wrote differs from what the repository stated before. false where the same content was written again | |
shellAdapter | string | Yes | The shell adapter written to the runtime configuration: the one --shell-adapter named, else the one detected for the host shell | |
engine | string | Yes | The engine the written runtime configuration states | |
appRoot | string | Yes | The appRoot the written runtime configuration states: the one --app-root named, else the one already stated, else . | |
appConfigPath | string | No | Where the app config was written; absent for an application that declares no config type | |
cliConfigPath | string | Yes | Where the runtime configuration was written |