Renames `config` to `generate-config` and implements a new `config` command that generates the configuration file based on the current state instead of printing a static string.