skills/launchdarkly-cli/SKILL.md
--- Skill name: launchdarkly-cli Skill description: Manages LaunchDarkly feature flags, experiments, environments, and local dev-server using the ldcli CLI. Use when asked to create, list, toggle, or manage feature flags, run the LaunchDarkly dev-server, or interact with LaunchDarkly resources. --- # LaunchDarkly CLI Interact with LaunchDarkly feature flags, experiments, environments, and other resources using the `ldcli` command line tool. ## Prerequisites - `ldcli` must be installed (`brew
npx skillsauth add abhiroopb/synthetic-mind skills/launchdarkly-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Interact with LaunchDarkly feature flags, experiments, environments, and other resources using the ldcli command line tool.
ldcli must be installed (brew install ldcli or npm install -g @launchdarkly/ldcli)ldcli login or set LD_ACCESS_TOKEN env var)ldcli stores config at $XDG_CONFIG_HOME/ldcli/config.yml. Set defaults to avoid passing flags repeatedly:
ldcli config --set access-token <token>
ldcli config --set project <project-key>
ldcli config --set environment <environment-key>
ldcli config --set output json # or plaintext
ldcli config --list
Environment variables use LD_ prefix (e.g., LD_ACCESS_TOKEN, LD_PROJECT).
# List flags
ldcli flags list --project <project>
# Create a flag
ldcli flags create --project <project> -d '{"name": "My Flag", "key": "my-flag"}'
# Get flag details
ldcli flags get --project <project> --flag <flag-key>
# Update a flag
ldcli flags update --project <project> --flag <flag-key> -d '{"name": "Updated Name"}'
# Delete a flag
ldcli flags delete --project <project> --flag <flag-key>
# List experiments
ldcli experiments list --project <project> --environment <env>
# Create an experiment
ldcli experiments create --project <project> --environment <env> -d '{
"name": "Checkout flow test",
"key": "checkout-flow-test",
"description": "Experiment comparing new and old checkout flow"
}'
# Get environment details and SDK credentials
ldcli environments get --project <project> --environment <env>
# Get SDK key (server-side)
ldcli environments get --project <project> --environment <env> | jq '.apiKey'
# Get mobile key
ldcli environments get --project <project> --environment <env> | jq '.mobileKey'
# Get client-side ID
ldcli environments get --project <project> --environment <env> | jq '.id'
The dev-server lets you test flag values locally without connecting to LaunchDarkly.
# Start the dev-server (runs on http://localhost:8765)
ldcli dev-server start
# Add a project/environment to the dev-server
ldcli dev-server add-project --project <project> --source <environment>
# Sync flags from source environment
ldcli dev-server sync-project --project <project>
# Override a flag value locally
ldcli dev-server add-override --project <project> --flag <flag-key> --data <value-json>
# Remove a flag override
ldcli dev-server remove-override --project <project> --flag <flag-key>
# Start with sync, context, and overrides
ldcli dev-server start --project <project> --source <env> \
--context '{"kind": "user", "key": "test-key"}' \
--override '{"my-flag": true}'
Dev-server UI is available at http://localhost:8765/ui/.
# Upload JavaScript sourcemaps for error monitoring
ldcli sourcemaps upload \
--app-version <version> \
--path <sourcemap-dir> \
--base-path <deploy-dir> \
--project <project>
--output json for machine-readable JSON outputjq for formatted JSON: ldcli <cmd> --output json | jqldcli supports all LaunchDarkly API resources. Discover available resources and their commands:
ldcli --help # List all resources
ldcli <resource> --help # List commands for a resource
ldcli <resource> <cmd> --help # Detailed help for a command
Data can be provided inline with -d '{...}' or from a file with -d "$(cat data.json)".
--output json when you need to parse or process the responseldcli config to reduce repetitive flagsldcli dev-server --help for full dev-server command referencetesting
Track TV shows and movies with Trakt.tv. Search, get watchlist, history, up-next, recommendations, trending, calendar, ratings, stats, add/remove from watchlist, mark watched, rate, and check in. Use when asked about what to watch, TV shows, movies, watch history, or Trakt.
development
Send and receive SMS messages via Twilio API. Used for text message notifications, forwarding important alerts, and two-way SMS communication.
documentation
Organizes files in the local Downloads folder into proper folders. Use when asked to organize, sort, or file downloaded documents.
tools
Book and manage appointments on Sutter Health MyHealth Online portal. Uses browser automation via Playwright MCP to interact with the patient portal.