Feature flags are a foundational component of Unleash, enabling you to manage features dynamically. This guide details the process of creating and configuring feature flags within Unleash. You’ll learn how to create flags, define activation strategies, enable them, and optionally refine their behavior with constraints, segments, and variants.
This guide focuses on the Unleash Admin UI, but you can also use the Admin API to create, update, and manage feature flags:
To create a feature flag in the Admin UI, do the following:
Activation strategies determine how and for whom a feature flag is enabled within a specific environment (for example, development, or production). To add an activation strategy to your feature flag in the Admin UI, do the following:
To enable the feature flag in an environment, use the main environment toggle to enable the flag in the environment. This ensures that the feature flag is evaluated using the rules of its activation strategies and the provided Unleash context.
Strategy constraints and segments allow you to apply fine-grained filters to your activation strategies, ensuring they only activate for users and applications matching specific criteria. You can add constraints or segments when creating or editing an existing activation strategy.
Segments work similarly to constraints, but they are a reusable set of constraints that you define once and can reuse across flags.
Variants give you the ability to further target your users and split them into groups of your choosing, such as for A/B testing.