From 36f4acb33d9ad55a68f8caee5d78ec9ae059fe13 Mon Sep 17 00:00:00 2001 From: Ethan Liu Date: Mon, 7 Nov 2022 12:32:30 +0800 Subject: [PATCH] railway: add page (#9488) --- pages/common/railway.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/railway.md diff --git a/pages/common/railway.md b/pages/common/railway.md new file mode 100644 index 0000000000..70a04cd1a9 --- /dev/null +++ b/pages/common/railway.md @@ -0,0 +1,28 @@ +# railway + +> Connect code to a Railway project from the command line. +> More information: . + +- 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`