Glossary · ProductAlso: Feature toggle
What is a feature flag?
A feature flag is a switch in your code that turns a feature on or off, or on for specific users, at runtime, without deploying new code. It separates deploying code from releasing a feature to people, so unfinished work can ship safely hidden and be switched on when it is ready.
Why it matters
Flags enable gradual rollouts, quick kill switches when something goes wrong, beta programmes and experiments.
Each flag adds a code path, so flags need owners and should be removed once a feature is fully launched.
Example
A new checkout is enabled for 5% of users, monitored for errors, then rolled out to everyone over a week.