Skip to content

set-config

Allows you to configure the application's configuration parameters.

Syntax:

shell
sfiler-cli [options] set-config [command options]
Command optionsRequired / OptionalDescription
-nOptionalInstance Name. (Optional if the instance Id is specify)
-idOptionalInstance Id. (Optional if the instance Name is specify)
-tOptionalType 1:Server 3:Gateway 4:Gui. DEPRECATED
-kRequiredThe configuration key to set. Use the list-configs command to get a list of all possible configurations.
-vRequiredNew value to set for this configuration.
-encryptOptionalThis 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"