---
title: "Roll it out, roll it back, never redeploy"
description: "Railway now offers feature flags across its dashboard, CLI, TypeScript SDK and MCP server, so code can ship dark behind a default-off flag and be rolled out to a team, a percentage of users, or targeted segments without redeploying."
url: "https://swe.quest/articles/roll-it-out-roll-it-back-never-redeploy-c13aa355b1437d78"
canonical: "https://blog.railway.com/p/feature-flags"
source: "Railway"
published: "2026-07-17"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["deployment","configuration","ai-agents","developer-tools"]
---

# Roll it out, roll it back, never redeploy

A post on [Railway](https://swe.quest/sources/railway.md), published 2026-07-17, 7 min read, Announcement. Original: [https://blog.railway.com/p/feature-flags](https://blog.railway.com/p/feature-flags)

## Summary

Railway now offers feature flags across its dashboard, CLI, TypeScript SDK and MCP server, so code can ship dark behind a default-off flag and be rolled out to a team, a percentage of users, or targeted segments without redeploying. Percentage rollouts use a stable bucket(key) hash, so raising a threshold never flips users back. Reads evaluate in memory against rulesets fetched at init and refreshed in the background, which makes them cheap enough for hot paths. Instead of rule priorities, conflicting or unmatched rules resolve to the flag's default, and an evaluate API returns a reason and per-rule trace for debugging.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Configuration management](https://swe.quest/tags/configuration.md) (Reliability & operations)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- feature flags concept ([easy posts on Deployment](https://swe.quest/tags/deployment.md?difficulty=easy))
- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Railway, Railway CLI, MCP, feature flags, TypeScript SDK

## Related posts

- [Implementing Feature Flags from Scratch](https://swe.quest/articles/implementing-feature-flags-from-scratch-71e3ff66bd030a0e.md): Railway · 2024-12-13 · Medium · 24 min read · Deployment, JavaScript, PostgreSQL, React
  Feature flags can be built in-house on a Next.js Twitter clone, using Postgres for app data and Redis for flag state, then deployed to Railway.
- [Now you see me, now you don't: feature-flagging with LaunchDarkly at incident.io](https://swe.quest/articles/now-you-see-me-now-you-don-t-feature-flagging-with-launchdarkly-at-incident-io-cb6cda92c3363bee.md): incident.io · 2021-11-09 · Medium · 6 min read · Deployment, Go, React, Testing
  incident.io ships to production many times a day and uses feature flags to merge large features like Announcement Rules incrementally while hiding them from customers until launch.
- [How we ship code faster and safer with feature flags](https://swe.quest/articles/how-we-ship-code-faster-and-safer-with-feature-flags-49a97b8efaf60044.md): GitHub Engineering · 2021-04-27 · Medium · 9 min read · Deployment, CI/CD, Testing, Refactoring & migrations, Ruby
  GitHub puts risky changes and in-progress features behind feature flags so it can deploy continuously and disable problems in seconds instead of rolling back a deployment over several minutes.
- [Canary rollouts: upgrade models in production without downtime](https://swe.quest/articles/canary-rollouts-upgrade-models-in-production-without-downtime-639f92b02faa99d7.md): Together AI · 2026-09-22 · Medium · 18 min read · Deployment, Inference & serving, SRE, Load balancing
  Together AI's rollouts shift live inference traffic from one model deployment to another using canary, blue-green or rolling strategies.
- [Agentic Coding on Railway: A Practical Guide for 2026](https://swe.quest/articles/agentic-coding-on-railway-a-practical-guide-for-2026-dae3c2957727f1b2.md): Railway · 2026-05-25 · Medium · 10 min read · AI agents, AI for coding, Deployment, Cloud platforms
  Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
