How to configure feature flags in CI¶
The dda CLI can evaluate feature flags during CI runs. To enable this, configure how dda gets the client token.
Client token¶
Set DDA_FEATURE_FLAGS_CLIENT_TOKEN to pass the token directly. Otherwise, set a command that prints it:
You can also use the DDA_FEATURE_FLAGS_CI_TOKEN_COMMAND environment variable, which takes precedence. The command runs without a shell. On Windows the variable isn't split with POSIX rules, so backslashes in paths are kept.
Notes¶
ddaautomatically scopes evaluations with CI context, including job name, job ID, stage, and branch.- If no token can be retrieved, flags default to the code-provided default.
- For details about how to use feature flags in your code, check create cli documentation