1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 18:15:24 +02:00
tldr/pages/common/railway.md
2022-11-07 05:32:30 +01:00

605 B

railway

Connect code to a Railway project from the command line. More information: https://railway.app/.

  • Login to a Railway account:

railway login

  • Link to an existing Project under a Railway account or team:

railway link {{projectId}}

  • Create a new project directly from the command line:

railway init

  • Run 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 up

  • Open an interactive shell to a database:

railway connect