logchimp config:generate
Generate a new configuration for a LogChimp instance.
USAGE
$ logchimp config:generate [flags]
EXAMPLES
$ logchimp config:generate --force
$ logchimp config:generate --dbhost=localhost --dbuser=username --dbname=database --dbport=5432
Options
-f
or--force
- Overwrite the existing configuration file if present-i
or--interactive
- Use interactive mode--env
- Generate alogchimp.config.json
file using environment variables
Server
--local
- Run LogChimp for local development/testing--port=port
- [default: 3000] Server port to listen on--secretKey=secretKey
- Secret key for password validation (default auto-generates a random string)
Database
--dbhost=dbhost
- Database host--dbname=dbname
- Database name--dbpass=dbpass
- Database password (default auto-generates a random password)--dbport=dbport
- [default: 5432] Database port--[no-]dbssl
- Enable SSL for the database (default true for production)--dbuser=dbuser
- Database username
--mailhost=mailhost
- Mail service SMTP hostname--mailpass=mailpass
- Mail service SMTP password (default auto-generates a random password)--mailport=mailport
- [default: 587] Mail service SMTP port--mailservice=mailservice
- Mail service e.g., MailGun--mailuser=mailuser
- Mail service SMTP username