Mandala
Tools

LaunchDarkly

Manage feature flags with LaunchDarkly.

Usage Instructions

Integrate LaunchDarkly into your workflow. List, create, update, toggle, and delete feature flags. Manage projects, environments, segments, members, and audit logs. Requires API Key.

Tools

launchdarkly_create_flag

Create a new feature flag in a LaunchDarkly project.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key to create the flag in
namestringYesHuman-readable name for the feature flag
keystringYesUnique key for the feature flag (used in code)
descriptionstringNoDescription of the feature flag
tagsstringNoComma-separated list of tags
temporarybooleanNoWhether the flag is temporary (default true)

Output

ParameterTypeDescription
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
maintainerIdstringThe ID of the member who maintains this flag
maintainerEmailstringThe email of the member who maintains this flag

launchdarkly_delete_flag

Delete a feature flag from a LaunchDarkly project.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
flagKeystringYesThe feature flag key to delete

Output

ParameterTypeDescription
deletedbooleanWhether the flag was successfully deleted

launchdarkly_get_audit_log

List audit log entries from your LaunchDarkly account.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
limitnumberNoMaximum number of entries to return (default 10, max 20)
specstringNoResource specifier filter (e.g. "proj/:env/:flag/*" for all flag changes, or "proj/default:env/production:flag/my-flag" for one flag in one environment)

Output

ParameterTypeDescription
entriesarrayList of audit log entries
totalCountnumberTotal number of audit log entries

launchdarkly_get_flag

Get a single feature flag by key from a LaunchDarkly project.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
flagKeystringYesThe feature flag key
environmentKeystringNoFilter flag configuration to a specific environment

Output

ParameterTypeDescription
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
maintainerIdstringThe ID of the member who maintains this flag
maintainerEmailstringThe email of the member who maintains this flag
onbooleanWhether the flag is on in the requested environment (null when the flag spans multiple environments and no environment key was provided)

launchdarkly_get_flag_status

Get the status of a feature flag across environments (active, inactive, launched, etc.).

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
flagKeystringYesThe feature flag key
environmentKeystringYesThe environment key

Output

ParameterTypeDescription
namestringThe flag status (new, active, inactive, launched)
lastRequestedstringTimestamp of the last evaluation
defaultValstringThe default variation value

launchdarkly_list_environments

List environments in a LaunchDarkly project.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key to list environments for
limitnumberNoMaximum number of environments to return (default 20)

Output

ParameterTypeDescription
environmentsarrayList of environments
totalCountnumberTotal number of environments

launchdarkly_list_flags

List feature flags in a LaunchDarkly project.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key to list flags for
environmentKeystringNoFilter flag configurations to a specific environment
tagstringNoFilter flags by tag name
limitnumberNoMaximum number of flags to return (default 20)

Output

ParameterTypeDescription
flagsarrayList of feature flags
totalCountnumberTotal number of flags

launchdarkly_list_members

List account members in your LaunchDarkly organization.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
limitnumberNoMaximum number of members to return (default 20)

Output

ParameterTypeDescription
membersarrayList of account members
totalCountnumberTotal number of members

launchdarkly_list_projects

List all projects in your LaunchDarkly account.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
limitnumberNoMaximum number of projects to return (default 20)

Output

ParameterTypeDescription
projectsarrayList of projects
totalCountnumberTotal number of projects

launchdarkly_list_segments

List user segments in a LaunchDarkly project and environment.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
environmentKeystringYesThe environment key
limitnumberNoMaximum number of segments to return (default 20)

Output

ParameterTypeDescription
segmentsarrayList of user segments
totalCountnumberTotal number of segments

launchdarkly_toggle_flag

Toggle a feature flag on or off in a specific LaunchDarkly environment.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
flagKeystringYesThe feature flag key to toggle
environmentKeystringYesThe environment key to toggle the flag in
enabledbooleanYesWhether to turn the flag on (true) or off (false)

Output

ParameterTypeDescription
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
maintainerIdstringThe ID of the member who maintains this flag
maintainerEmailstringThe email of the member who maintains this flag
onbooleanWhether the flag is now on in the target environment

launchdarkly_update_flag

Update feature flag metadata (name, description, tags, temporary, archived) using semantic patch.

Input

ParameterTypeRequiredDescription
apiKeystringYesLaunchDarkly API key
projectKeystringYesThe project key
flagKeystringYesThe feature flag key to update
updateNamestringNoNew name for the flag
updateDescriptionstringNoNew description for the flag
addTagsstringNoComma-separated tags to add
removeTagsstringNoComma-separated tags to remove
archivebooleanNoSet to true to archive, false to restore
commentstringNoOptional comment explaining the update

Output

ParameterTypeDescription
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
maintainerIdstringThe ID of the member who maintains this flag
maintainerEmailstringThe email of the member who maintains this flag

Notes

  • Category: tools
  • Type: launchdarkly
LaunchDarkly