After CLI v3.14.0, running railway link -p ... with RAILWAYAPITOKEN set always failed with "Unauthorized. Please login with railway login", breaking CI pipelines that relied on token auth. Part of the confusion in the thread was the two token types: RAILWAYAPITOKEN is an account token, while RAILWAY_TOKEN is a project token scoped to a single environment.