:::tip
Apache Answer binary supports some command-line options
:::
answer command [command or global options] [arguments...]
Answer is a minimalist open source Q&A community. To run answer, use: - 'answer init' to initialize the required environment. - 'answer run' to launch application. Usage: answer [command] Available Commands: build Build Answer with plugins check Check the required environment completion Generate the autocompletion script for the specified shell config Set some config to default value dump Back up data help Help about any command i18n Overwrite i18n files init Initialize Answer plugin Print all plugins packed in the binary run Run Answer upgrade Upgrade Answer Flags: -C, --data-path string data path, eg: -C ./data/ (default "/data/") -h, --help help for answer -v, --version version for answer Use "answer [command] --help" for more information about a command.
All global options can be placed at the command level.
--help, -h: Show help text and exit. Optional.--version, -v: Show version and exit. Optional.--data-path path, -C path: data saved path. Optional. (default: /data/)init command will initialize the application required environment, contains: default config-file, data directory, initialize database etc.
answer init -C ./data/check command will check the application whether it can run or not. check the config file if exist. check the database if connection can be established etc.
answer check -C ./data/run command will run the application.
answer run -C ./data/upgrade command will upgrade the application.
-f version: Upgrade from the specified version. Optional.answer upgrade -C ./data/answer upgrade -f v1.1.0 -C ./data/dump command will dump the database data to sql file.
--path path, -p path: dump data path. Optional. (default: ./)answer dump -p /tmp/build a new Apache Answer with plugins.
--with the field name of plugin. Required.answer build --with plugin1 --with plugin2prints all plugins packed in the binary.
answer pluginrestore some config value to default.
--with the field name of config. Required.answer config -C ./data/ --with allow_password_login