Loading...
Loading...
This skill should be used when the user asks "what's the config", "show me the configuration", "what variables are set", "environment config", "service config", "railway config", or wants to add/set/delete variables, change build/deploy settings, scale replicas, connect repos, or delete services.
npx skill4agent add railwayapp/railway-skills environmentrailway --versionrailway upgraderailway environment config --jsonrailway environment config --jsonrailway variables --jsonnewrailway environment new <name>railway environment new staging --duplicate productionrailway environment new staging --duplicate production --service-variable api PORT=3001railway environment <name>railway environment <environment-id>railway status --jsonproject.idenvironment.idrailway statusService: <name>railway environment config --json | jq '.services | keys'railway status --jsonproject.services{ id, name }environment configrailway environment config --json{
"services": {
"<serviceId>": {
"source": { "repo": "...", "branch": "main" },
"build": { "buildCommand": "npm run build", "builder": "NIXPACKS" },
"deploy": {
"startCommand": "npm start",
"multiRegionConfig": { "us-west2": { "numReplicas": 1 } }
},
"variables": { "NODE_ENV": { "value": "production" } },
"networking": { "serviceDomains": {}, "customDomains": {} }
}
},
"sharedVariables": { "DATABASE_URL": { "value": "..." } }
}environment config${{shared.DOMAIN}}# Current linked service
railway variables --json
# Specific service
railway variables --service <service-name> --jsonrailway environment editrailway environment edit --json <<< '<json-patch>'railway environment edit -m "description of change" --json <<< '<json-patch>'railway environment edit --json <<< '{"services":{"SERVICE_ID":{"build":{"buildCommand":"npm run build"}}}}'railway environment edit -m "add API_KEY" --json <<< '{"services":{"SERVICE_ID":{"variables":{"API_KEY":{"value":"secret"}}}}}'railway environment edit --json <<< '{"services":{"SERVICE_ID":{"variables":{"OLD_VAR":null}}}}'railway environment edit --json <<< '{"services":{"SERVICE_ID":{"isDeleted":true}}}'railway environment edit --json <<< '{"services":{"SERVICE_ID":{"deploy":{"multiRegionConfig":{"us-west2":{"numReplicas":3}}}}}}'railway environment edit --json <<< '{"sharedVariables":{"DATABASE_URL":{"value":"postgres://..."}}}'railway environment edit -m "configure build, start, and env" --json <<< '{"services":{"SERVICE_ID":{"build":{"buildCommand":"npm run build"},"deploy":{"startCommand":"npm start"},"variables":{"NODE_ENV":{"value":"production"}}}}}'railway environment editrailway upgradeService "foo" not found in project. Available services: api, web, workerbuildCommandstartCommandbuildCommanddockerfilePathYou don't have permission to modify this environment. Check your Railway role.No project linked. Run `railway link` to link a project.servicedeploymentdomaindeploy