This utility copies flag targeting settings from one LaunchDarkly environment to another. It uses the Copy Flag Settings REST API call.
All includedActions
are enabled, meaning your flags will copy everything from the source environment to destination environment, including:
- updateOn
- updatePrerequisites
- updateTargets
- updateRules
- updateFallthrough
- updateOffVariation
Rate limits are handled in utils/apiHandler.py.
pip install requests
- In
main.py
, replace theAPI_KEY
,PROJECT_KEY
,SOURCE_ENVIRONMENT
, andDESTINATION_ENVIRONMENT
with your values - Run
main.py
! (I'd recommend running it only in test/dev environments. This is an unsupported friday side project.)