For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
13.5kProductPricingSign inStart free trialBook a demo
DocsAPIsSDKsEnterprise EdgeGuidesAcademyRelease notes
DocsAPIsSDKsEnterprise EdgeGuidesAcademyRelease notes
    • Home
  • Get started
    • Quickstart
    • Introduction to feature flags
    • Unleash architecture overview
  • Core concepts
    • Overview
    • Import and export
      • Unleash hosting options
        • Getting started
        • Configuring Unleash
        • Upgrading Unleash
        • License keys
        • HTTPS
        • Synchronize Unleash instances
      • Developer Toolbar

Unleash reduces the risk of releasing new features, drives innovation by streamlining the software release process, and increases revenue by optimizing end-user experience. While we serve the needs of the world's largest, most security-conscious organizations, we are also rated the “Easiest Feature Management system to use” by G2.

GitHubGitHubLinkedInLinkedInX (Twitter)X (Twitter)SlackSlackStack OverflowStack OverflowYouTubeYouTube

Server SDKs

  • Node.js
  • Java
  • Go
  • Rust
  • Ruby
  • Python
  • .NET
  • PHP
  • All SDKs

Frontend SDKs

  • JavaScript
  • React
  • Next.js
  • Vue
  • iOS
  • Android
  • Flutter

Feature Flag use cases

  • Secure, scalable feature flags
  • Rollbacks
  • FedRAMP, SOC2, ISO2700 compliance
  • Progressive or gradual rollouts
  • Trunk-based development
  • Software kill switches
  • A/B testing
  • Feature management
  • Canary releases

Product

  • Quickstart
  • Unleash architecture
  • Pricing
  • Product vision
  • Open live demo
  • Open source
  • Enterprise feature management platform
  • Unleash vs LaunchDarkly

Support

  • Help center
  • Status
  • Changelog
Made in a cosy atmosphere in the Nordic countries.Copyright © 2026 Unleash
LogoLogo
13.5kProductPricingSign inStart free trialBook a demo
On this page
  • Configuration
  • Source Unleash instance
  • Target Unleash instance
  • Process
  • Troubleshooting
Integrate and deploySelf-hosting Unleash

How to synchronize Unleash instances

||View as Markdown|
Was this page helpful?

Last updated May 11, 2026

Previous

Set up SSO with OpenID Connect

Next
Built with

This is an experimental feature.

This script allows you to synchronize feature flags between two Unleash instances using the export and import APIs provided by Unleash. The script exports feature flags from the source instance and imports them into the target instance.

For one-off full instance migrations, we recommend a database dump/restore (pg_dump / pg_restore) instead.

You can find this script in the following location within the project:

scripts/promote.sh

This script can also be integrated into a continuous deployment pipeline, allowing you to automatically synchronize feature flags between instances at a frequency determined by your pipeline configuration.

If you have any segments or custom strategies defined, you must first manually create these in the target instance.

Feature flags are imported with full configuration, including:

  • Activation strategies
  • Context fields
  • Strategy variants
  • Tags
  • Feature flag state
  • Feature dependencies
  • Feature flag links

If a feature flag already exists in your target instance, it will be overwritten.

Configuration

To synchronize two Unleash instances, you need to configure each instance with the required settings. The script requires the following configuration:

Source Unleash instance

  • SOURCE_URL: The URL of the source Unleash API. Example: SOURCE_URL="http://localhost:4242/api/admin/features-batch/export"
  • SOURCE_API_TOKEN: The API token for the source Unleash instance. This can be a personal access token or a service account token with enough privileges to perform the export operation. Example: SOURCE_API_TOKEN="user:98b555423fa020a3e67267fb8462fdeea13a1d62e7ea61d5fe4f3022"
  • SOURCE_ENV: The environment name for the source instance. Only feature flags matching this environment will be exported.
  • SOURCE_TAG: The tag to filter feature flags for export.

Target Unleash instance

  • TARGET_URL: The URL of the target Unleash API. Example: TARGET_URL="http://localhost:4242/api/admin/features-batch/import"
  • TARGET_API_TOKEN: The API token for the target Unleash instance. This can be a personal access token or a service account token with enough privileges to perform the import operation. Example: TARGET_API_TOKEN="user:98b555423fa020a3e67267fb8462fdeea13a1d62e7ea61d5fe4f3022"
  • TARGET_PROJECT: The project name for the target instance where the feature flags will be imported.
  • TARGET_ENV: The environment name for the target instance.

Process

The script performs the following steps:

  1. Export feature flags from the source instance based on the specified tag and environment.
  2. Import the exported feature flags into the target instance under the specified project and environment.

If change requests are enabled in the target project, the import process will go through the change request process, allowing you to review the changes before applying them.

The script prints each step of the export and import process, providing feedback on the success or failure of each operation.

Troubleshooting

Here are some common issues you might encounter and how to resolve them:

  • Check that you use the correct URLs for the source and target instances.
  • Ensure that the API tokens have the necessary permissions to perform export and import operations.
  • Verify that the specified source and target environments exist.
  • Check that the target project exists.
  • If you have change requests enabled in the target project, ensure that there are no pending change requests for the same API token.
  • Check that any custom strategies or segments have been migrated manually.