KosmoKrator

productivity

LaunchDarkly CLI for AI Agents

Use the LaunchDarkly CLI from KosmoKrator to call LaunchDarkly tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

LaunchDarkly CLI Setup

LaunchDarkly can be configured headlessly with `kosmokrator integrations:configure launchdarkly`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure launchdarkly --set access_token="$LAUNCHDARKLY_ACCESS_TOKEN" --set project_key="$LAUNCHDARKLY_PROJECT_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor launchdarkly --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token LAUNCHDARKLY_ACCESS_TOKEN Secret secret yes Access Token
project_key LAUNCHDARKLY_PROJECT_KEY Text text yes Project Key
url LAUNCHDARKLY_URL URL url no API Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call launchdarkly.launchdarkly_api_get '{}' --json
Provider shortcut
kosmo integrations:launchdarkly launchdarkly_api_get '{}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs launchdarkly --json
kosmo integrations:docs launchdarkly.launchdarkly_api_get --json
kosmo integrations:schema launchdarkly.launchdarkly_api_get --json
kosmo integrations:search "LaunchDarkly" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

launchdarkly.launchdarkly_api_get

Call any LaunchDarkly GET endpoint.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_api_get '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_api_get '{}' --json

launchdarkly.launchdarkly_api_post

Call any LaunchDarkly POST endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_api_post '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_api_post '{}' --json

launchdarkly.launchdarkly_api_patch

Call any LaunchDarkly PATCH endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_api_patch '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_api_patch '{}' --json

launchdarkly.launchdarkly_api_put

Call any LaunchDarkly PUT endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_api_put '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_api_put '{}' --json

launchdarkly.launchdarkly_api_delete

Call any LaunchDarkly DELETE endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_api_delete '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_api_delete '{}' --json

launchdarkly.launchdarkly_list_projects

List all LaunchDarkly projects. Returns project keys, names, and the number of environments in each project.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_projects '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_projects '{}' --json

launchdarkly.launchdarkly_get_project

Get detailed information about a specific LaunchDarkly project, including its environments and settings.

Read read
Parameters
project_key
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_project '{"project_key":"example_project_key"}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_project '{"project_key":"example_project_key"}' --json

launchdarkly.launchdarkly_create_project

Create a LaunchDarkly project.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_create_project '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_create_project '{}' --json

launchdarkly.launchdarkly_update_project

Update a LaunchDarkly project with JSON Patch.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_project '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_project '{}' --json

launchdarkly.launchdarkly_delete_project

Delete a LaunchDarkly project.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_project '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_project '{}' --json

launchdarkly.launchdarkly_list_environments

List all environments for a LaunchDarkly project. Returns environment keys, names, and their SDK keys for reference.

Read read
Parameters
project_key
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_environments '{"project_key":"example_project_key"}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_environments '{"project_key":"example_project_key"}' --json

launchdarkly.launchdarkly_get_environment

Get a LaunchDarkly environment.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_environment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_environment '{}' --json

launchdarkly.launchdarkly_create_environment

Create a LaunchDarkly environment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_create_environment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_create_environment '{}' --json

launchdarkly.launchdarkly_update_environment

Update a LaunchDarkly environment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_environment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_environment '{}' --json

launchdarkly.launchdarkly_delete_environment

Delete a LaunchDarkly environment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_environment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_environment '{}' --json

launchdarkly.launchdarkly_list_flags

List feature flags in a LaunchDarkly project. Returns flag keys, names, descriptions, and their on/off state per environment.

Read read
Parameters
project_key, limit, offset, env
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_flags '{"project_key":"example_project_key","limit":1,"offset":1,"env":"example_env"}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_flags '{"project_key":"example_project_key","limit":1,"offset":1,"env":"example_env"}' --json

launchdarkly.launchdarkly_get_flag

Get detailed information about a specific LaunchDarkly feature flag, including targeting rules, variations, and per-environment state.

Read read
Parameters
feature_flag_key, project_key, env
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_flag '{"feature_flag_key":"example_feature_flag_key","project_key":"example_project_key","env":"example_env"}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_flag '{"feature_flag_key":"example_feature_flag_key","project_key":"example_project_key","env":"example_env"}' --json

launchdarkly.launchdarkly_create_feature_flag

Create a LaunchDarkly feature flag.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_create_feature_flag '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_create_feature_flag '{}' --json

launchdarkly.launchdarkly_update_feature_flag

Update a LaunchDarkly feature flag.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_feature_flag '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_feature_flag '{}' --json

launchdarkly.launchdarkly_toggle_flag

Turn a LaunchDarkly feature flag on or off in a specific environment. Use this to enable or disable a feature flag.

Write write
Parameters
feature_flag_key, enabled, environment_key, project_key
Generic call
kosmo integrations:call launchdarkly.launchdarkly_toggle_flag '{"feature_flag_key":"example_feature_flag_key","enabled":true,"environment_key":"example_environment_key","project_key":"example_project_key"}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_toggle_flag '{"feature_flag_key":"example_feature_flag_key","enabled":true,"environment_key":"example_environment_key","project_key":"example_project_key"}' --json

launchdarkly.launchdarkly_copy_feature_flag

Copy feature flag settings between environments.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_copy_feature_flag '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_copy_feature_flag '{}' --json

launchdarkly.launchdarkly_delete_feature_flag

Delete a LaunchDarkly feature flag.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_feature_flag '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_feature_flag '{}' --json

launchdarkly.launchdarkly_list_segments

List segments in a LaunchDarkly environment.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_segments '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_segments '{}' --json

launchdarkly.launchdarkly_get_segment

Get a LaunchDarkly segment.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_segment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_segment '{}' --json

launchdarkly.launchdarkly_create_segment

Create a LaunchDarkly segment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_create_segment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_create_segment '{}' --json

launchdarkly.launchdarkly_update_segment

Update a LaunchDarkly segment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_segment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_segment '{}' --json

launchdarkly.launchdarkly_delete_segment

Delete a LaunchDarkly segment.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_segment '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_segment '{}' --json

launchdarkly.launchdarkly_get_current_user

Get information about the currently authenticated LaunchDarkly user. Useful for verifying API credentials.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_current_user '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_current_user '{}' --json

launchdarkly.launchdarkly_list_members

List LaunchDarkly account members.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_members '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_members '{}' --json

launchdarkly.launchdarkly_get_member

Get a LaunchDarkly account member.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_member '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_member '{}' --json

launchdarkly.launchdarkly_invite_members

Invite LaunchDarkly account members.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_invite_members '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_invite_members '{}' --json

launchdarkly.launchdarkly_update_member

Update a LaunchDarkly account member.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_member '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_member '{}' --json

launchdarkly.launchdarkly_delete_member

Delete a LaunchDarkly account member.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_member '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_member '{}' --json

launchdarkly.launchdarkly_list_teams

List LaunchDarkly teams.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_list_teams '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_list_teams '{}' --json

launchdarkly.launchdarkly_get_team

Get a LaunchDarkly team.

Read read
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_get_team '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_get_team '{}' --json

launchdarkly.launchdarkly_create_team

Create a LaunchDarkly team.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_create_team '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_create_team '{}' --json

launchdarkly.launchdarkly_update_team

Update a LaunchDarkly team.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_update_team '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_update_team '{}' --json

launchdarkly.launchdarkly_delete_team

Delete a LaunchDarkly team.

Write write
Parameters
none
Generic call
kosmo integrations:call launchdarkly.launchdarkly_delete_team '{}' --json
Shortcut
kosmo integrations:launchdarkly launchdarkly_delete_team '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

launchdarkly.launchdarkly_api_get 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_api_get --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_api_post 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_api_post --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_api_patch 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_api_patch --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_api_put 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_api_put --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_api_delete 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_api_delete --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_projects 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_projects --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_get_project 1 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_project --json
ParameterTypeRequiredDescription
project_key string yes The project key (e.g., "default", "my-backend-project").
launchdarkly.launchdarkly_create_project 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_create_project --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_project 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_project --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_project 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_project --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_environments 1 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_environments --json
ParameterTypeRequiredDescription
project_key string no The project key (defaults to the configured project).
launchdarkly.launchdarkly_get_environment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_environment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_create_environment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_create_environment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_environment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_environment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_environment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_environment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_flags 4 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_flags --json
ParameterTypeRequiredDescription
project_key string no The project key (defaults to the configured project).
limit integer no Maximum number of flags to return (default: 20, max: 100).
offset integer no Offset for pagination (default: 0).
env string no Environment key to filter results (e.g., "production", "staging").
launchdarkly.launchdarkly_get_flag 3 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_flag --json
ParameterTypeRequiredDescription
feature_flag_key string yes The feature flag key (e.g., "enable-new-dashboard").
project_key string no The project key (defaults to the configured project).
env string no Environment key to filter results (e.g., "production", "staging").
launchdarkly.launchdarkly_create_feature_flag 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_create_feature_flag --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_feature_flag 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_feature_flag --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_toggle_flag 4 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_toggle_flag --json
ParameterTypeRequiredDescription
feature_flag_key string yes The feature flag key (e.g., "enable-new-dashboard").
enabled boolean yes Set to true to turn the flag on, false to turn it off.
environment_key string yes The environment key (e.g., "production", "staging", "development").
project_key string no The project key (defaults to the configured project).
launchdarkly.launchdarkly_copy_feature_flag 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_copy_feature_flag --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_feature_flag 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_feature_flag --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_segments 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_segments --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_get_segment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_segment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_create_segment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_create_segment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_segment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_segment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_segment 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_segment --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_get_current_user 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_members 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_members --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_get_member 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_member --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_invite_members 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_invite_members --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_member 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_member --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_member 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_member --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_list_teams 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_list_teams --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_get_team 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_get_team --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_create_team 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_create_team --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_update_team 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_update_team --json
ParameterTypeRequiredDescription
No parameters.
launchdarkly.launchdarkly_delete_team 0 parameters
Schema command
kosmo integrations:schema launchdarkly.launchdarkly_delete_team --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.