{"id":34117937,"url":"https://github.com/launchdarkly/ldcli","last_synced_at":"2026-02-03T15:08:47.279Z","repository":{"id":231167879,"uuid":"767135657","full_name":"launchdarkly/ldcli","owner":"launchdarkly","description":"The official command line interface for managing LaunchDarkly feature flags.","archived":false,"fork":false,"pushed_at":"2026-02-02T19:40:57.000Z","size":12834,"stargazers_count":21,"open_issues_count":15,"forks_count":11,"subscribers_count":23,"default_branch":"main","last_synced_at":"2026-02-03T08:31:06.558Z","etag":null,"topics":["cli","command-line-interface","feature-flags","feature-toggles","launchdarkly-integration","managed-by-terraform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-04T19:08:39.000Z","updated_at":"2026-02-02T19:41:02.000Z","dependencies_parsed_at":"2024-04-22T16:43:02.643Z","dependency_job_id":"3d48ee71-4cd6-434c-8fe9-df2ddb483d7c","html_url":"https://github.com/launchdarkly/ldcli","commit_stats":null,"previous_names":["launchdarkly/ldcli"],"tags_count":67,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/ldcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fldcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fldcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fldcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fldcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/ldcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fldcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T14:55:20.264Z","status":"ssl_error","status_checked_at":"2026-02-03T14:55:19.725Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line-interface","feature-flags","feature-toggles","launchdarkly-integration","managed-by-terraform"],"created_at":"2025-12-14T20:40:42.160Z","updated_at":"2026-02-03T15:08:47.204Z","avatar_url":"https://github.com/launchdarkly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM][npm-badge]][npm-link]\n[![Docker][docker-badge]][docker-link]\n[![GitHub release][ghrelease-badge]][ghrelease-link]\n\n# LaunchDarkly CLI\n\nThe LaunchDarkly CLI helps you manage your feature flags from your terminal or your IDE.\n\nWith the CLI, you can:\n\n- Create and evaluate your first feature flag with a guided `setup` command.\n- Onboard your whole team by inviting new members.\n- Interact with the [LaunchDarkly API](https://apidocs.launchdarkly.com/) using resource- and CRUD-based commands.\n\n## Installation\n\nThe LaunchDarkly CLI is available for macOS, Windows, and Linux.\n\n### macOS\nThe CLI is available on macOS via [Homebrew](https://brew.sh/):\n```shell\nbrew tap launchdarkly/homebrew-tap\nbrew install ldcli\n```\n\n### Windows\nA Windows executable of `ldcli` is available on the [releases page](https://github.com/launchdarkly/ldcli/releases).\n\n### Linux\nA Linux executable of `ldcli` is available on the [releases page](https://github.com/launchdarkly/ldcli/releases).\n\n### Additional installations\n\nYou can also install the LaunchDarkly CLI using npm or Docker.\n\n#### npm\nInstall with npm:\n```shell\nnpm install -g @launchdarkly/ldcli\n```\n\n#### Docker\nPull from Docker:\n```shell\ndocker pull launchdarkly/ldcli\n```\n\n## Usage\n\nInstalling the CLI provides access to the `ldcli` command.\n\n```sh-session\nldcli [command]\n\n# Run `--help` for detailed information about CLI commands\nldcli --help\n```\n\n## Configuration\n\nThe LaunchDarkly CLI allows you to save preferred settings, either as environment variables or within a config file. Use the `config` commands to save your settings.\n\nSupported settings:\n\n* `access-token` A LaunchDarkly access token with write-level access\n* `analytics-opt-out` Opt out of analytics tracking (default false)\n* `base-uri` LaunchDarkly base URI (default \"https://app.launchdarkly.com\")\n- `environment`: Default environment key\n- `flag`: Default feature flag key\n- `output`: Command response output format in either JSON or plain text\n- `project`: Default project key\n\nAvailable `config` commands:\n\n- `config --set {key} {value}`\n- `config --unset {key}`\n- `config --list`\n\nTo save a setting as an environment variable, prepend the variable name with `LD`. For example:\n\n```shell\nexport LD_ACCESS_TOKEN=api-00000000-0000-0000-0000-000000000000\n```\n\nTo save a setting in the configuration file:\n\n```shell\nldcli config --set access-token api-00000000-0000-0000-0000-000000000000\n```\n\nRunning this command creates a configuration file located at `$XDG_CONFIG_HOME/ldcli/config.yml` with the access token. Subsequent commands read from this file, so you do not need to specify the access token each time.\n\n## Commands\n\nLaunchDarkly CLI commands:\n\n- `setup` guides you through creating your first flag, connecting an SDK, and evaluating your flag in your Test environment\n- `dev-server` lets you start a local server and retrieve flag values from a LaunchDarkly source environment so you can test your code locally. For assistance starting with or running dev-server, refer to the [reference docs](https://launchdarkly.com/docs/guides/flags/ldcli-dev-server).\n\n### Resource Commands\n\nResource commands mirror the LaunchDarkly API and make requests for a given resource. To see a full list of resources supported by the CLI, enter `ldcli --help` into your terminal.\n\nTo see the commands available for a given resource:\n\n```sh-session\nldcli \u003cresource\u003e --help\n```\n\nHere is an example command to create a flag:\n\n```sh-session\nldcli flags create --access-token \u003caccess-token\u003e --project default --data '{\"name\": \"My Test Flag\", \"key\": \"my-test-flag\"}'\n```\n\n## Documentation\n\nAdditional documentation is available at https://docs.launchdarkly.com/home/getting-started/ldcli.\n\n## Contributing\n\nWe encourage pull requests and other contributions from the community. Check out our [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this project.\n\n### Running a local build of the CLI\nIf you wish to test your changes locally, simply\n1. Clone this repo to your local machine;\n2. Run `make build` from the repo root;\n3. Run commands as usual with `./ldcli`.\n\n## Verifying build provenance with the SLSA framework\n\nLaunchDarkly uses the [SLSA framework](https://slsa.dev/spec/v1.0/about) (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published packages. To learn more, see the [provenance guide](./PROVENANCE.md).\n\n## About LaunchDarkly\n\n* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard.  With LaunchDarkly, you can:\n    * Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.\n    * Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).\n    * Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.\n    * Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.\n* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.\n* Explore LaunchDarkly\n    * [launchdarkly.com](https://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com](https://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDK reference guides\n    * [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com](https://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n\n[npm-badge]: https://img.shields.io/npm/v/@launchdarkly/ldcli.svg?style=flat-square\n[npm-link]: https://www.npmjs.com/package/@launchdarkly/ldcli\n\n[docker-badge]: https://img.shields.io/docker/v/launchdarkly/ldcli.svg?style=flat-square\u0026label=Docker\n[docker-link]: https://hub.docker.com/r/launchdarkly/ldcli\n\n[ghrelease-badge]: https://img.shields.io/github/release/launchdarkly/ldcli.svg\n[ghrelease-link]: https://github.com/launchdarkly/ldcli/releases/latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fldcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fldcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fldcli/lists"}