LaunchDarkly
Procedures and concepts for the LaunchDarkly integration.
Overview
LaunchDarkly is a feature management platform that enables teams to deploy code safely and control feature releases through feature flags. This integration allows automated feature flag management, user targeting, and deployment workflow automation. Enhance development velocity and reduce deployment risks through controlled feature rollouts.
Prerequisites
1. Required Books
The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:
LaunchDarkly
How to Add the Book(s)
Go to Books → All Books.
Search for the name of the book and click on it.
Click on Install or Add Connection to add the book to your agent.
If adding a connection, you'll be prompted for connectivity details.
Connectivity
This section outlines the available methods for connecting to the Book, along with the required configuration details for each.
Connect using Access Token
Creates a client with the provided access token
Access Token
a Launch Darkly API access token
sensitive
Procedures
to create a flag in a project
Create a new feature flag within a given project.
Input Concepts
Output Concepts
Examples
to get some (flag's status)
Get the status of a feature flag in a specific environment.
Input Concepts
the environment in which to check the flag's status
launch darkly environment
Yes
(no default)
Output Concepts
a flag status indicating whether the flag is enabled (on) or disabled (off)
launch darkly flag status
Examples
to get some (project's environments)
Get the environments of a project
Input Concepts
Output Concepts
Examples
Get a single environment with name Test. It can also be filtered by environment key.
to get some (project's flags)
Get the flags of a project
Input Concepts
Output Concepts
Examples
Get a single flag with key new-test-flag. It can also be filtered by flag name.
to get some (projects)
Get the projects in Launch Darkly
Output Concepts
Examples
Get a single project with name "Kognitos - Test Project". It can also be filtered by project key.
to toggle some flag
Toggle the state of a feature flag in a specific environment.
Input Concepts
on
a boolean indicating the desired state; True to enable the flag, False to disable it
boolean
Yes
(no default)
Output Concepts
Examples
Concepts
Launch darkly project
A project in Launch Darkly
id
The unique identifier of the project.
text
name
The human-readable name of the project.
text
key
The project key used to reference it in API calls and configurations.
text
Launch darkly flag
A feature flag in a Launch Darkly project
name
The human-readable name of the flag.
text
key
The unique key used to reference the flag.
text
description
A description of what the flag does or is used for.
optional[text]
project_key
The key of the project this flag belongs to. May be None if not yet assigned.
optional[text]
Launch darkly environment
An environment in a Launch Darkly project
id
The unique identifier of the environment.
text
name
The human-readable name of the environment.
text
key
The environment key used in API calls and feature flag configuration.
text
project_key
The key of the project this environment belongs to.
text
Launch darkly flag status
The status of a feature flag in a certain environment
environment
The environment in which the flag status is evaluated.
json
flag
The feature flag whose status is being represented.
json
is_on
Indicates whether the flag is currently enabled (True) or disabled (False).
boolean
Last updated
Was this helpful?

