LaunchDarkly Developer Documentation

Get started in under 30 minutes.
LaunchDarkly provides feature flags as a service for Java · Python · Ruby · Go · Node.js · PHP · .NET. Control feature launches -- who sees what and when -- without multiple code deploys. Easy dashboard for phased rollouts, targeting and segmenting.
Need more help? write us at

Get Started    Documentation

Creating a feature flag

LaunchDarkly makes feature flag creation easy. First, navigate to your feature flag dashboard and click "New". This will prompt you to create a feature flag.

In the "Create a feature flag" area, you can specify attributes for your new feature flag, including name, description, and type. These attributes help you manage the feature flag and customize it to your use case.

A. Name your feature flag
Give your feature flag a meaningful name

B. Specify a flag key
Specify the key that you will use to reference the flag in your code. You may customize the key to anything you like, so long as it does not duplicate an existing key.

C. Describe your flag
Provide a meaningful human-readable description of the flag. This will help your team members understand the flag's purpose.

D. Add tags
One or more labels to help you categorize the flag. This is especially helpful for managing flag permissions using custom roles. For example, you can tag a flag as "Marketing" and "DevOps", and then use these tags to determine who has read or write access for the flag.

E. Specify the flag type
Choose either boolean or multivariate for the flag type. A boolean flag has two variations true and false, which works best for feature flags that will simply turn things on and off. A multivariate flag allows you to define two or more custom variations. These variations can be strings, numbers, JSON objects, or JSON arrays. You will specify the value for each variation (ex. one-click-checkout) with the option to add a human-readable name and description.

F. Settings
"This is a permanent flag"
Mark the flag as permanent if you intend it to keep it in your code long-term (ex. a flag to enable maintenance mode). We will not prompt you to remove permanent flags, even if one variation has been rolled out to all of your users.

"Make this flag available to the client-side"
By default, feature flags cannot be used on the front-end of your application. With this option, you can control which flags are available from the JavaScript SDK

Creating a feature flag