Creating a Feature Flag

Start by setting up a FlagSync project (try the 14-day free trial, no credit card needed), then create a flag via the Flags dashboard.

Flag Configuration

1

Set It Up

  • Name: A human-readable label (e.g., “Signup CTA”)—editable later.
  • Key: A unique identifier (e.g., signup-cta) for code use.
  • Description: Optional summary of the flag’s purpose.
Flag creation form filled out
2

Select Type

Boolean

On/off switches


Perfect for:

Enable/disable features

Beta feature toggles

String

Predefined options


Common uses:

Theme: light-mode, dark-mode

CTA: Register, Join Now

Number

Numeric values


Common uses:

Rate limits: 1000, 5000, 10000

Image quality: 75, 80, 100

JSON

Complex objects


Common uses:

{ "layout": "grid", "maxItems": 8 }

Flag types filled out
3

Variants

Define the variants to serve (e.g., 0.00, 0.10, 0.20 for discount-rate).

Flag variants filled out
4

Choose Default Variants

Set defaults for discount-rate:

  • Enabled: 0.20 (20% discount).
  • Disabled: 0.00 (no discount).
Flag variants filled out
  • When the flag is on, the enabled variant (e.g., 0.20) is served unless overridden by targeting.
  • When the flag is off, the disabled variant (e.g., 0.00) applies to all users.
5

Save It

Click “Create Flag” to save.

6

Activate It

Next Steps