Skip to main content

1. Create a flag

  1. Navigate to your project in the OmniFlags dashboard.
  2. Click New flag. Set the key (e.g. charge-delivery-fee), type (Boolean), and category (Release).
  3. In the Targeting tab, enable the flag and set rollout to 100%.
Flag keys are scoped to their project. The SDK key you reference in code is {projectKey}.{flagKey}, for example checkout.charge-delivery-fee.

2. Copy your SDK key

Go to Settings → Environments and copy the SDK key for the environment you’re targeting. SDK keys are environment-scoped. Use separate keys for development, staging, and production.

3. Install and initialise the SDK

Wrap your app root with OmniFlagsProvider. It fetches the flag snapshot and makes the client available to all descendant components.

4. Evaluate your flag

Next steps