railway upfails with "Not signed in" using a project token (RAILWAY_TOKEN) in CI
a month ago
Summary
After @railway/cli v5.3.0 was published (2026-06-05 ~16:42 UTC), our GitHub Actions deploys started failing at railway up with "Not signed in.", even though a valid project token is provided via the RAILWAY_TOKEN environment variable. The identical workflow worked on v5.2.0. Pinning back to @railway/cli@5.2.0 restored it with no other changes.
Environment
- CI: GitHub Actions (
ubuntu-latest) - CLI install:
npm install -g @railway/cli(unpinned → picked up v5.3.0) - Auth: project token (environment-scoped to our
productionenvironment) supplied asRAILWAY_TOKEN - We do not run
railway login; auth is entirely via the token env var.
Command
railway up --service backend --environment production --detach(run for several services in the same project/environment)
Output on v5.3.0
Not signed in.
→ Run `railway login` to authenticate, then re-run.
Error: Process completed with exit code 1.Exit code 1; nothing is deployed.
What works
The same command, same token, same workflow, on v5.2.0 authenticates and deploys successfully.
Version timeline (from your GitHub releases)
- v5.2.0 — 2026-06-05 12:50 UTC — works
- v5.3.0 — 2026-06-05 16:42 UTC — fails as above
Questions
- Is this an intentional change in v5.3.0 to how
railway upaccepts a project token viaRAILWAY_TOKEN(especially when--serviceand--environmentare passed explicitly)? If so, it's a breaking change that wasn't obvious from the release notes. - What is the supported way to run
railway up --service <svc> --environment <env>non-interactively in CI on v5.3.0+ — should we switch to an account/team token viaRAILWAY_API_TOKEN, drop the--environmentflag, or something else? - Could you confirm whether project tokens in
RAILWAY_TOKENare still supported forrailway upgoing forward?
We've pinned to v5.2.0 as a workaround, but would like to move forward on a supported configuration.
2 Replies
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
Having the same issue - all GitLab deploys to railway now fail with issues authenticating with previously valid Railway tokens. Pinning to 5.2.0 CLI fixes the issue.
a month ago
This is a regression in CLI v5.3.0. Project tokens via RAILWAY_TOKEN are fully supported for railway up (including with --service and --environment), and the server-side auth path for them is unchanged, so the break is in the CLI's client-side auth check. Pinning to @railway/cli@5.2.0 is the right workaround for now. You can track or file this on the CLI GitHub repo since the CLI is open source.
Status changed to Awaiting User Response Railway • about 1 month ago
25 days ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 25 days ago