environment

Installation
Summary

Read and edit Railway environment configuration, variables, build settings, and service deployment parameters.

  • Fetch current environment config including source, build/deploy settings, variables, and networking via railway environment config --json
  • Create new environments, duplicate existing ones with optional service-specific variable overrides, or switch between environments
  • Edit configuration atomically using JSON patches: set build/start commands, add/update/delete variables, change replica counts, connect GitHub repos, or delete services
  • View rendered (resolved) variable values at runtime with railway variables --json to debug connection issues and verify variable resolution
SKILL.md

Environment Configuration

Read and edit Railway environment configuration using the CLI.

Prerequisites

Requires Railway CLI v4.27.3+. Check with:

railway --version

If below 4.27.3, upgrade:

railway upgrade

Quick Actions

When user asks "what's the config" or "show configuration":

Related skills

More from railwayapp/railway-skills

Installs
836
GitHub Stars
259
First Seen
Jan 20, 2026