environment
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 --jsonto debug connection issues and verify variable resolution
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":
More from railwayapp/railway-skills
use-railway
>
3.5Kservice
This skill should be used when the user asks about service status, wants to rename a service, change service icons, link services, or create services with Docker images. For creating services with local code, prefer the `new` skill. For GitHub repo sources, use `new` skill to create empty service then `environment` skill to configure source.
1.6Kcentral-station
This skill should be used when the user asks about Central Station threads, community discussions, support questions, feature requests, or wants to search Railway's community knowledge base. Use for queries like "search central station", "find threads about", "what are people asking about", "recent support threads", or "central station topics".
1.5Kstatus
This skill should be used when the user asks "railway status", "is it running", "what's deployed", "deployment status", or about uptime. NOT for variables ("what variables", "env vars", "add variable") or configuration queries - use environment skill for those.
1.5Krailway-docs
This skill should be used when the user asks about Railway features, how Railway works, or shares a docs.railway.com URL. Fetches up-to-date Railway docs to answer accurately.
1.1Kdeployment
This skill should be used when the user wants to manage Railway deployments, view logs, or debug issues. Covers deployment lifecycle (remove, stop, redeploy, restart), deployment visibility (list, status, history), and troubleshooting (logs, errors, failures, crashes, why deploy failed). NOT for deleting services - use environment skill with isDeleted for that.
1.0K