···2121## running
22222323the server should be run once to generate a default `config.toml` file.
2424-configure as needed. note that a valid DB connection is required, and the admin
2525-panel will be disabled without valid discord app credentials (this can however
2626-be bypassed by running the server with `-adminBypass`).
2424+configure as needed. a valid DB connection is required to run this website.
2525+if no admin users exist, an invite code will be provided. invite codes are
2626+the only way to create admin accounts at this time.
27272828the configuration may be overridden using environment variables in the format
2929`ARIMELODY_<SECTION_NAME>_<KEY_NAME>`. for example, `db.host` in the config may
···31313232the location of the configuration file can also be overridden with
3333`ARIMELODY_CONFIG`.
3434+3535+## command arguments
3636+3737+by default, `arimelody-web` will spin up a web server as usual. instead,
3838+arguments may be supplied to run administrative actions. the web server doesn't
3939+need to be up for this, making this ideal for some offline maintenance.
4040+4141+- `createInvite`: Creates an invite code to register new accounts.
4242+- `purgeInvites`: Deletes all available invite codes.
4343+- `deleteAccount <username>`: Deletes an account with a given `username`.
34443545## database
3646