> ## 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

**Developer**

**Federal docs**

**EU docs**

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

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

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](https://launchdarkly.com/docs/guides/agentcontrol).
