Procedures
Automation procedures in the LaunchDarkly BDK Book.
Make sure to add the LaunchDarkly BDK Book to your agent before using these automation procedures.
to create a flag in a project
Create a new feature flag within a given project.
Input Concepts
Output Concepts
Examples
the string is '{"name":"New Flag from Playground 2", "key":"new-flag-from-playground-2", "description":"A flag created from the playground"}'
get the string as json
use the above as the new flag
>>>
create the new flag in the test project
to get some (flag's status)
Get the status of a feature flag in a specific environment.
Input Concepts
Output Concepts
a flag status indicating whether the flag is enabled (on) or disabled (off)
launch darkly flag status
Examples
get the test project's environment whose name is "test"
use the above as the environment
get the test project's flag whose key is "new-test-flag"
use the above as the test flag
>>>
get the test flag's status where
the environment is the environment
to get some (project's environments)
Get the environments of a project
Input Concepts
Output Concepts
Examples
get a project whose name is "Kognitos - Test Project"
use the above as the test project
get the test project's environments
Get a single environment with name Test. It can also be filtered by environment key.
...
get the test project's environment whose name is "Test"
to get some (project's flags)
Get the flags of a project
Input Concepts
Output Concepts
Examples
get a project whose name is "Kognitos - Test Project"
use the above as the test project
get the test project's flags
Get a single flag with key new-test-flag. It can also be filtered by flag name.
...
get the test project's flag whose key is "new-test-flag"
to get some (projects)
Get the projects in Launch Darkly
Output Concepts
Examples
get some projects
Get a single project with name "Kognitos - Test Project". It can also be filtered by project key.
get some projects whose name is "Kognitos - Test Project"
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
Output Concepts
Examples
toggle the test flag with
the environment is the environment
the on is 'true'
Last updated
Was this helpful?