2 years ago
I know the Railway CLI supports project-level API tokens, which work like this:
RAILWAY_TOKEN="my_project_level_api_token" railway runHowever, when I try using an account-level API token:
RAILWAY_TOKEN="my_account_level_api_token" railway run
# or
RAILWAY_TOKEN="my_account_level_api_token" railway whoamiIt doesn’t work, and I couldn’t find any documentation about this. Is account-level token support available, or could it be added?
This feature would be useful for integrations like the 1Password Shell Plugin.
Thanks!
3 Replies
2 years ago
N/A
2 years ago
Edit: Solved now. See this GitHub issue for more info.
All you need to do is pass a RAILWAY_API_TOKEN as your account-level API token and it works great. Below example shows how you can use it:
RAILWAY_API_TOKEN="my_account_level_api_token" railway whoami
# Shows your account infoFeel free to mark this post as Solved.
2 years ago
i am updating the docs right now!