set-config
Allows you to configure the application's configuration parameters.
Syntax:
shell
sfiler-cli [options] set-config [command options]| Command options | Required / Optional | Description |
|---|---|---|
| -n | Optional | Instance Name. (Optional if the instance Id is specify) |
| -id | Optional | Instance Id. (Optional if the instance Name is specify) |
| -t | Optional | Type 1:Server 3:Gateway 4:Gui. DEPRECATED |
| -k | Required | The configuration key to set. Use the list-configs command to get a list of all possible configurations. |
| -v | Required | New value to set for this configuration. |
| -encrypt | Optional | This config value is to be encrypted before storing in the database. |
Example:
This example lets you define the configuration value for the server's listening port.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" set-config -k "cfg.server.port" -v "8098"shell
.\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" set-config -k "cfg.server.port" -v "8098"