All apps/LaunchDarkly CLI

LaunchDarkly CLI

ldcli

The official command line interface for managing LaunchDarkly feature flags.

Runs as ldcli|macOS, Linux, Windows|github.com

Command form

ai-draft · 1 task · 5 fields

Create a LaunchDarkly feature flag through the CLI. Other resource commands, dev-server and config are left out. The access token is usually stored with ldcli config, so it is optional here.

Opens the form; the finished command lands at your prompt, unrun
otty gui ldcli

ldcli flags create

Create a flag

Create a feature flag in a project from a JSON body.

Create a flagExample values, fixed in this page — nothing here reaches a terminal
Basic
Project key*
string
Flag JSON body*
string
Advanced
Access token
string
TasksEach one presets the form for one job
Create a flag
projectdataaccess_token
ParametersOnly these flags are editable in the form
Project key
string
--projectdefault
Flag JSON body
For example {"name": "My Test Flag", "key": "my-test-flag"}.
string
--data
Access token
Leave empty to use the token saved by ldcli config. A token typed here stays in shell history.
string
--access-token
Output format
enum
--outputplaintextjson
JSON output
boolean
--json
SourcesEvery flag above is checked against these
readme
ldcli flags create --access-token <access-token> --project default --data '{"name": "My Test Flag", "key": "my-test-flag"}' When you do not pass `--output` or `--json`, the default format depends on whether standard output is a terminal: **plaintext** in an interactive terminal, **json** when stdout is not a TTY **`--json`** (if set, wins over `--output` whe…
help2026-10

github.com

Before it fills your prompt, Otty checks the installed ldcli against its version. A form that does not match your version is not offered.