> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature flags

<View title="Developer" />

<View title="Federal docs" />

<View title="EU docs" />

This category has guides that teach you how to use and manage feature flags.

* [Best practices for upgrading users to contexts](/docs/guides/flags/upgrading-contexts)
* [Creating flags](/docs/guides/flags/creating-flags)
* [Deciding between flag targeting strategies](/docs/guides/flags/targeting-recommendations)
* [Defining and targeting mobile applications](/docs/guides/flags/defining-mobile-apps)
* [Feature flag hierarchy](/docs/guides/flags/flag-hierarchy)
* [Flag conventions](/docs/guides/flags/flag-conventions)
* [Improving flag usage in code](/docs/guides/flags/improving-code)
* [LaunchDarkly CLI dev-server reference guide](/docs/guides/flags/ldcli-dev-server-reference)
* [Performing multi-stage migrations with migration flags](/docs/guides/flags/migrations)
* [Reducing technical debt from feature flags](/docs/guides/flags/technical-debt)
* [Testing code that uses feature flags](/docs/guides/flags/testing-code)
* [Using entitlements to manage customer experience](/docs/guides/flags/entitlements)
* [Using flags on static sites with JavaScript](/docs/guides/flags/static-sites)
* [Using the LaunchDarkly CLI for local testing](/docs/guides/flags/ldcli-dev-server)
* [Using segments and targeting to manage early access programs](/docs/guides/flags/eap-targeting)

If your application uses generative AI models, you can manage prompts and model settings with AgentControl configs alongside your flags. To learn more, read the [AgentControl guides](/docs/guides/agentcontrol).
