update-feature-flag
Enables or disables features introduced in the current version of S-Filer Portal.
Syntax:
sfiler-config-cli [options] update-feature-flag [command options]| Command options | Required / Optional | Description |
|---|---|---|
| -n | Required | The name of the feature to be activated or deactivated. |
| -s | Required | True or False. A True value means the feature is enabled, while a False value means it is disabled. |
To find out which features are available, you can consult the list-feature-flags command, which lists the available features :
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" list-feature-flagsThe result of executing this command lists the available features, their status and whether they are locked :
****************************
Feature flags
****************************
-----------------------------------------------------------------------
| Name | Status | Locked |
-----------------------------------------------------------------------
| version.flag.4-21-x | true | x |
| feature.flag.mail.consolidation | false | x |
| feature.flag.disable.legacy.guest.permissions | false | x |
| feature.flag.quick.send | true | x |
| feature.flag.request.files | true | x |
-----------------------------------------------------------------------In the Locked column, x = not locked and ✓ = locked.
Example:
You can then activate or deactivate features using the update-feature-flag command :
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" update-feature-flag -n "version.flag.4-21-x" -s "true".\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" update-feature-flag -n "version.flag.4-21-x" -s "true"Warning
The name supplied to the -n option must match exactly one of the names listed by the list-feature-flags command. These are the technical names, not the names displayed in the Administrative Console: for example, the Version 4.21 version flag is named version.flag.4-21-x. Otherwise the command fails with the message The feature flag name provided for the [-n] option is not found.
A locked feature (the Locked column) cannot be modified. The command then fails with the message The feature flag you are trying to update is locked.
Warning
The change is only applied by the solution components at an exact multiple of 5 minutes. Plan for this delay before validating the new behaviour.
