Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This topic describes how to get started with the LaunchDarkly CLI.LaunchDarkly provides a command line interface (CLI) so that you can set up and manage your feature flags, account members, projects, environments, teams, and other resources directly from the command line.Installation
The LaunchDarkly CLI is available for macOS, Windows, and Linux. To install the LaunchDarkly CLI:Get started
To get started with the LaunchDarkly CLI, you need to authenticate yourself. Then, you can usesetup to create and set up your first flag, run any of the ldcli commands.
Authentication
Before you run commands in the LaunchDarkly CLI, you need to authenticate yourself. You have a few options:- Authenticate with your email and password. The
logincommand provides a login link to the LaunchDarkly UI, requests your approval for the LaunchDarkly CLI to access your account information, and then stores an appropriate access token in the LaunchDarkly CLI’s configuration file. - Authenticate with an access token that you create, and use the
configcommand to set the token for your session. Theconfigcommand to controls authorization and other configuration values. - Authenticate with an access token that you create, and pass the access token each command you run. Here’s how:
Setup
Thesetup command provides a step-by-step guide to create a flag, install an SDK, and toggle that flag:
Additional documentation
LaunchDarkly provides the following additional documentation:- For more information about common commands, read LaunchDarkly CLI commands.
- For details on how to use the LaunchDarkly CLI to perform local testing and development, read Using the LaunchDarkly CLI for local testing and read LaunchDarkly CLI dev-server reference. You can also use the
ldcli [command] --helpcommand to view usage information for all commands for the LaunchDarkly CLI.To view and contribute to the LaunchDarkly CLI source code, or to file issues for our team, visit the LaunchDarkly CLI GitHub repository.