Procedures
Automation procedures in the LaunchDarkly book.
Ensure that you have installed or connected the LaunchDarkly book and created a new playground 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 projectto 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
Last updated
Was this helpful?
