problem
several commands still prompt for interactive input even when all required flags are provided. this breaks ci/cd pipelines, scripts, and ai agent automation.
specific commands that prompt unnecessarily:
railway add --database mysql — prompts "what do you need?" even though --database is explicit
railway add --image <img> -s <name> — prompts "enter a variable" with no way to skip
railway down — prompts for confirmation with no --yes flag support
real-world scenario
building an automated deployment script that provisions a full stack (mysql + redis + backend + frontend). every railway add call hangs waiting for tty input despite having all flags. the workaround is piping /dev/null or < /dev/null which sometimes works, sometimes doesn't.
proposed solution
- when all required params are provided via flags, skip interactive prompts entirely
- add
--yes / -y flag to all destructive commands (down, delete, etc.)
- detect non-tty environments and error with a clear message instead of hanging
related
problem
several commands still prompt for interactive input even when all required flags are provided. this breaks ci/cd pipelines, scripts, and ai agent automation.
specific commands that prompt unnecessarily:
railway add --database mysql— prompts "what do you need?" even though--databaseis explicitrailway add --image <img> -s <name>— prompts "enter a variable" with no way to skiprailway down— prompts for confirmation with no--yesflag supportreal-world scenario
building an automated deployment script that provisions a full stack (mysql + redis + backend + frontend). every
railway addcall hangs waiting for tty input despite having all flags. the workaround is piping/dev/nullor< /dev/nullwhich sometimes works, sometimes doesn't.proposed solution
--yes/-yflag to all destructive commands (down,delete, etc.)related