snippetbashTip
railway — Connect code to a Railway project. More information: <https://docs.railway.com/reference/cli-api>.
Viewed 0 times
commandrailwayclicodeconnectmoreproject
Problem
How to use the
railway command: Connect code to a Railway project. More information: <https://docs.railway.com/reference/cli-api>.Solution
railway — Connect code to a Railway project. More information: <https://docs.railway.com/reference/cli-api>.Login to a Railway account:
railway loginLink to an existing Project under a Railway account or team:
railway link {{projectId}}Create a new project:
railway initRun a local command using variables from the active environment:
railway run {{cmd}}Deploy the linked project directory (if running from a subdirectory, the project root is still deployed):
railway upOpen an interactive shell to a database:
railway connectCode Snippets
Login to a Railway account
railway loginLink to an existing Project under a Railway account or team
railway link {{projectId}}Create a new project
railway initRun a local command using variables from the active environment
railway run {{cmd}}Deploy the linked project directory (if running from a subdirectory, the project root is still deployed)
railway upContext
tldr-pages: common/railway
Revisions (0)
No revisions yet.