KosmoKrator

devtools

LaunchDarkly CLI for Cron Jobs

Use the LaunchDarkly CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

LaunchDarkly CLI for Cron Jobs

Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.

Use the headless CLI from cron when an operation should run without an interactive agent session. The LaunchDarkly CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# LaunchDarkly CLI for Cron Jobs
kosmokrator integrations:configure launchdarkly --set access_token="$LAUNCHDARKLY_ACCESS_TOKEN" --set project_key="$LAUNCHDARKLY_PROJECT_KEY" --enable --read allow --write ask --json
kosmo integrations:call launchdarkly.launchdarkly_list_flags '{"project_key":"example_project_key","limit":1,"offset":1,"env":"example_env"}' --json

Discovery Before Execution

Agents and scripts can inspect LaunchDarkly docs and schemas before choosing a function.

kosmo integrations:docs launchdarkly --json
kosmo integrations:docs launchdarkly.launchdarkly_list_flags --json
kosmo integrations:schema launchdarkly.launchdarkly_list_flags --json
kosmo integrations:search "LaunchDarkly" --json
kosmo integrations:list --json

Useful LaunchDarkly CLI Functions

FunctionTypeParametersDescription
launchdarkly.launchdarkly_list_flags Read project_key, limit, offset, env List feature flags in a LaunchDarkly project. Returns flag keys, names, descriptions, and their on/off state per environment.
launchdarkly.launchdarkly_get_flag Read feature_flag_key, project_key, env Get detailed information about a specific LaunchDarkly feature flag, including targeting rules, variations, and per-environment state.
launchdarkly.launchdarkly_toggle_flag Write feature_flag_key, enabled, environment_key, project_key Turn a LaunchDarkly feature flag on or off in a specific environment. Use this to enable or disable a feature flag.
launchdarkly.launchdarkly_list_environments Read project_key List all environments for a LaunchDarkly project. Returns environment keys, names, and their SDK keys for reference.
launchdarkly.launchdarkly_list_projects Read none List all LaunchDarkly projects. Returns project keys, names, and the number of environments in each project.
launchdarkly.launchdarkly_get_project Read project_key Get detailed information about a specific LaunchDarkly project, including its environments and settings.
launchdarkly.launchdarkly_get_current_user Read none Get information about the currently authenticated LaunchDarkly user. Useful for verifying API credentials.

Automation Notes

Related LaunchDarkly CLI Pages