Step 1: Click the “create feature toggle” button
The first time you log-in to your Unleash-hosted instance you will see an empty list of feature toggles. In order to create a new feature toggle you have to click the “create feature toggle” button
Step 2: Create Feature toggle
After clicking the “create feature toggle button you will be presented with a form for creating a new feature toggle. You will need to define a few fields before you can actually complete the new feature toggle.
- Name – Must be unique across all your feature toggle. The name must also follow a URL friendly format. Can not be changed.
- Description – A good description makes it easier for other members on your team to understand why this feature toggle exists.
- Enabled – Whether the feature toggle should be enabled or disabled. If the feature toggle is disabled, activation strategy configurations will not be evaluated.
- Activation strategies – A list of on or more activation strategies. An activation strategy is used to enable the feature toggle to a subset, or all, of your users.
Step 4: Congratulations, you have now created your first feature toggle!
The toggle is now created and ready to be used. The toggle does not have any metrics because it is not used by any applications, yet!
Step 5: Enable the feature toggle only for your boss!
The next step is to change the activation strategy to only target your boss. You can use the “userWithId”-strategy for that. Using the configuration shown below will only enable the feature toggle for “firstname.lastname@example.org” and “email@example.com”. Thus you can safely test your feature in production, without exposing it to your users. In control roll-out with strategies we will go in to greater details on how to use activation strategies to gradually expose new features to your users.
In this guide you created your first feature toggle and enabled it for everyone. In later guides we will learn how we can reduce the risk by enabling the toggle for a controlled set of users first. In the next step you will learn how you can use the feature toggle in your application.