Creating feature flags

1 minute read

Feature flags are the foundation of the CloudBees Feature Management platform and can encompass many types of logic and code.

Before creating a feature flag, refer to About feature flags to learn about how feature flags work.

Flag Creation Introduction

Creating feature flags in the UI and source code.

Watch the video

Flags can be created either in the CloudBees Feature Management UI or by adding feature flag code to your application. If you add feature flag code to your application, compile and run it to view your feature flags in the CloudBees Feature Management dashboard.

The flag name must be exactly the same in the source code as in the CloudBees Feature Management UI for it to be the same flag. Flag names are case-sensitive.

Creating a flag in the UI

  1. From the CloudBees Feature Management Home page, select either the Overview screen or any environment under Flags in Environments.

  2. Select Create Flag on the top right of the screen.

  3. Enter your flag name, and then select a flag type.

  4. For string or number types only, you can select Define variations, and then enter predefined variations or free text as targeting values. To learn more, refer to Feature flag settings - Feature flag variations.

  5. You can select Mark this flag as permanent to set the flag to Permanent status and ignore impression data. To learn more, refer to Environments - Flag status.

  6. Select Create flag.

    Create a new flag
    Figure 1. Creating a new flag in the UI

    Your new flag is created in all environments.