Skip to content

How to Create Feature Flags

Feature flags are the core building block of Featureflip. This guide walks you through creating, configuring, and managing flags from the web dashboard.

Creating a new feature flag — the Create Feature Flag page with key and description fields filled in

  1. Navigate to your project’s Flags page at /flags.
  2. Click Create Flag in the top right.
  3. Fill in the flag details:
    • Name — A human-readable label (e.g., “New Checkout Flow”).
    • Key — Auto-generated from the name (e.g., new-checkout-flow). This is what you reference in code. You can edit it before saving.
    • Flag type — Choose from Boolean, String, Number, or JSON.
    • Description (optional) — Explain what this flag controls and why it exists.
    • Tags (optional) — Add tags to organize and filter flags (e.g., frontend, experiment, checkout).
  4. Click Create to save the flag.

When you create a flag, default variations are set up based on the type:

  • Boolean flags get true and false variations automatically.
  • String, Number, and JSON flags start with placeholder variations that you customize on the flag detail page.

For non-boolean flags, you can add more variations from the flag detail page:

  1. Open the flag by clicking its name on the Flags page.
  2. Scroll to the Variations section.
  3. Click Add Variation.
  4. Enter a key (used internally) and a value (what gets returned to your application).
  5. Save your changes.

Each flag can be toggled on or off independently per environment:

  1. Open the flag detail page at /flags/:flagId.
  2. Select the environment tab (e.g., Development, Staging, Production).
  3. Use the toggle to turn the flag on or off.

When a flag is off, the off variation is served to all users regardless of targeting rules. When a flag is on, targeting rules and the fallthrough variation determine what each user receives.

Archive flags you no longer need instead of deleting them immediately:

  1. Open the flag detail page or select flags from the list.
  2. Click Archive. The flag stops being evaluated but is not permanently removed.
  3. To bring it back, find the flag in the archived list and click Restore.
  4. Delete a flag permanently only when you are certain it will never be needed again.

Select multiple flags from the Flags list to perform actions in bulk:

  • Archive — Remove several flags from active evaluation at once.
  • Restore — Bring back multiple archived flags.
  • Delete — Permanently remove selected flags.
  • Update tags — Add or remove tags across multiple flags.

Check the boxes next to the flags you want, then use the bulk action toolbar that appears.

  • Use descriptive names. Anyone on your team should understand what a flag controls from its name alone.
  • Prefix keys with the feature area. For example, checkout-new-flow or billing-annual-discount. This makes keys easier to find in code.
  • Add descriptions. Document why a flag exists and when it should be removed.
  • Tag consistently. Agree on a tagging convention with your team (e.g., by team, by feature area, or by lifecycle stage).
  • Clean up old flags. Archive flags once a feature is fully rolled out. Stale flags add confusion and technical debt.
  • Review flags regularly. Schedule periodic reviews to identify flags that are no longer needed.