RailwayDocs

railway login

Login to your Railway account to authenticate the CLI.

Usage

Options

FlagDescription
-b, --browserlessLogin without opening a browser (uses pairing code)

Examples

Browser login (default)

Opens your default browser to authenticate:

Browserless login

Use this in environments without a browser (e.g., SSH sessions):

This displays a pairing code and URL. Visit the URL and enter the code to authenticate.

Environment variables

If RAILWAY_TOKEN or RAILWAY_API_TOKEN is set, the CLI will use that token instead of prompting for login. See Tokens for more information.