railway account switchCLI command
2 months ago
I manage both a personal Railway account and a work Railway account (both linked to separate GitHubs). Currently, switching between them requires logging out and back in via the web, or re-running railway login in the CLI — there's no quick way to toggle between accounts.
What I'd love to see:
1. Web UI: A workspace/account switcher in the dashboard (similar to Vercel or GitHub's account menu) that lets you jump between your personal and work accounts without a full logout flow.
2. CLI: A railway account switch command (similar to gh auth switch) that lets you maintain named account profiles and switch between them instantly — e.g.:
- railway account add to authenticate and save a new profile
- railway account switch <profile> to toggle the active account
- railway account list to see saved profiles
Current workaround: Separate browser profiles for the web, and manually swapping RAILWAY_TOKEN env vars in the CLI — both are clunky.
0 Threads mention this feature
0 Replies