# Managing instance configuration Every command should be ran with a prefix, in case of OTP releases it is `./bin/pleroma_ctl instance` and in case of source installs it's `mix pleroma.instance`. ## Generate a new configuration file ```sh $PREFIX gen [] ``` If any of the options are left unspecified, you will be prompted interactively. ## Options - `-f`, `--force` - overwrite any output files - `-o `, `--output ` - the output file for the generated configuration - `--output-psql ` - the output file for the generated PostgreSQL setup - `--domain ` - the domain of your instance - `--instance-name ` - the name of your instance - `--admin-email ` - the email address of the instance admin - `--notify-email ` - email address for notifications - `--dbhost ` - the hostname of the PostgreSQL database to use - `--dbname ` - the name of the database to use - `--dbuser ` - the user (aka role) to use for the database connection - `--dbpass ` - the password to use for the database connection - `--rum ` - Whether to enable RUM indexes - `--indexable ` - Allow/disallow indexing site by search engines - `--db-configurable ` - Allow/disallow configuring instance from admin part - `--uploads-dir ` - the directory uploads go in when using a local uploader - `--static-dir ` - the directory custom public files should be read from (custom emojis, frontend bundle overrides, robots.txt, etc.) - `--listen-ip ` - the ip the app should listen to, defaults to 127.0.0.1 - `--listen-port ` - the port the app should listen to, defaults to 4000