# Managing instance configuration {! backend/administration/CLI_tasks/general_cli_task_info.include !} ## Generate a new configuration file === "OTP" ```sh ./bin/pleroma_ctl instance gen [option ...] ``` === "From Source" ```sh mix pleroma.instance gen [option ...] ``` 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