diff --git a/docs/internal/FeatureFlags.md b/docs/internal/FeatureFlags.md index 953fa42f2b..a6d03b0623 100644 --- a/docs/internal/FeatureFlags.md +++ b/docs/internal/FeatureFlags.md @@ -50,8 +50,20 @@ Feature flag state not yet surfaced to extensions. Non hidden feature flags are toggleable through the app settings page in Composer. Hidden feature flags can be configured by the end user in a few different ways depending on your environment. ### Electron app -Currently no way yet to set feature flags in downloaded electron app - +To toggle a hidden feature flag in electron you need to set the feature flag value as an environment variable in a command line and then open Composer through that same command line. + #### Windows + - Open a command line + - Navigate to where your electron executable is stored. + - Default location on Windows machines is `C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` + - Default location on mac is `/Applications/Bot Framework Composer.app/Contents/MacOS` + - sample command: `cd C:\Users\{user}\AppData\Local\Programs\Bot Framework Composer` + - In the command line set the value of the hidden feautre flag you would like to enable. + - For example, if you want to enable the ADVANCED_TEMPLATE_OPTIONS feature flag you would run the following sample command in the command line + - sample command on widnows:`set ADVANCED_TEMPLATE_OPTIONS=true` + - sample command on mac: `ADVANCED_TEMPLATE_OPTIONS=true ./Bot\ Framework\ Composer` + - Then in the Composer dir run the Composer executable and it should open Composer with that hidden feature flag enabled + - sample command: `"Bot Framework Composer.exe"` + ### Dev env Feature flag values are stored in data.json. In a development environment where you have direct access to this file you can toggle the value for hidden and non hidden feature flags directly in data.json. Next iteration task items: