Hacker
Saumo Pal
@saumopal97
Elsewhere
Projects
flagferry: promote Flagsmith flags between environments, safely, even mid-experiment
Flagsmith Experimentation HackathonNov 2026
flagferry is a terminal app and CLI that diffs and promotes Flagsmith flags between environments. The problem: configuring a flag in Development and shipping it to Production means re-creating it by hand in the dashboard: the on/off state, the value, every segment override in order, and the A/B weights. The dashboard can compare environments but can't apply the difference, and export skips segment overrides. Miss one override and Production quietly behaves differently. Users have asked for this since 2021 (#542, #541, #1472, #7072: "our developers are seriously struggling"). Who uses it: any team running Flagsmith with more than one environment, i.e. developers and release managers shipping flags from Dev to Staging to Production. How it works: - Run flagferry: one grid shows every flag in every environment, with drifted cells highlighted. Pick a flag and see exactly what the target needs to match. - Mark flags and press p: a full preview of every change. In the demo it catches a hotfix someone made directly in Production, so you unmark it instead of wiping it. - Press y: flagferry backs up the target, checks nobody changed it since the preview, writes each whole flag in one atomic call through Flagsmith's flag API, then reads it back to verify. A one-line undo is printed. - Experiment-aware: while Flagsmith Experimentation runs on a flag, a release holds that flag back and ships the rest. When the experiment ends, one command carries the winner to the other environments so the next release can't undo it. - Scripts and CI: the same engine as plain commands (diff, promote, export, import, check). Export an environment to YAML, commit it, and `flagferry check` fails CI when someone changes Production by hand.