The following application commands allow administrators to perform certain actions on their instance, including installing, upgrading, or maintaining it.
These options can be used in conjunction with any other flags.
||Config file to use with any other operation|
||Output debug information in application logs|
||Output help for any command|
Use these flags to perform certain actions as part of the setup process.
||Start the configuration process||Yes|
||Generate encryption keys||No|
||Initialize the database by creating the necessary tables||No|
For example, run these commands in order to set up your instance:
writefreely config start writefreely keys generate
You can optionally choose which configuration sections to walk through during the configuration process with the
--sections flag. Values are space-separated and must be one of the following:
writefreely --config --sections="app db server"
These flags assist with upgrading an instance.
||Migrate database schema to the latest version|
Use these flags to perform actions around users.
||Create an admin user in the database. Fails if admin already exists.||No|
||Create a regular user in the database. Fails if no admin user exists yet.||No|
||Reset the given user's password||Yes|
||Delete the given user, after confirming interactively||Yes|
||Print WriteFreely version information|