2022-11-07 04:32:30 +00:00
|
|
|
# railway
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Connect code to a Railway project.
|
2022-11-07 04:32:30 +00:00
|
|
|
> 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}}`
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
- Create a new project:
|
2022-11-07 04:32:30 +00:00
|
|
|
|
|
|
|
`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`
|