# Muffin Dev for Node - Kapp - CLI - `generate:config`

Generates a configuration file that contains the default configuration of your modules.

## Synopsis

```bash
generate:config <appPath> <outputPath>
```

## Arguments

### `appPath`

The path to your application directory.

### `outputPath`

The path to a directory or the file where the configuration will be written.

This path can target:

- A directory: this will create a `config.json` file at the root of that directory
- A `*.js` file: the configuration object isn exported with `module.exports`
- A `*.ts` file: the configuration object is exported with `export`
- A `*.json` file

Note that if the target configuration file already exists, its content is merged. So the existing configuration is keeped, and only the new config properties are added.