You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not seeing a flag to specify a custom config file.
I am not seeing a environment variable besides RAILWAY_TOKEN, which is different though. It's for project-specific authentication instead of the full account.
@arunsathiya Looks like the latest version of Railway's CLI only supports a per-project token for their CLI's auth according to the official CLI auth docs. They do have other methods of auth but the one that uses a token is only per-project level.
From what I'm seeing on their docs, I'm not sure if they support having an 'account-level' token (to manage all Railway projects for instance).
Edit: Apparently there exists an un-documented RAILWAY_API_TOKEN variable for account-level access for the Railway CLI. This works great, and I opened a PR (#481) to create a new plugin for the Railway CLI.
Update: Apparently there exists an un-documented RAILWAY_API_TOKEN variable for account-level access for the Railway CLI as mentioned here. This works great, and I opened a PR (#481) to create a new 1Password CLI Shell Plugin for the Railway CLI.
Activity
arunsathiya commentedon Feb 6, 2023
I have done a bit of research over the last week:
RAILWAY_TOKEN, which is different though. It's for project-specific authentication instead of the full account.I am currently talking to Railway staff on Discord to get more info.
arunsathiya commentedon Feb 15, 2023
Quick update from the Discord conversation:
Time to wait.
arunsathiya commentedon Mar 6, 2023
Another progress note: Their CLI is now written in rust, and seems to have merged to the main repo as of two days ago. I am yet to take their new CLI for a spin. Hopefully there's a flag to path custom config path, and/or support for environment variables.
aryanprince commentedon Aug 20, 2024
@arunsathiya Looks like the latest version of Railway's CLI only supports a per-project token for their CLI's auth according to the official CLI auth docs. They do have other methods of auth but the one that uses a token is only per-project level.
From what I'm seeing on their docs, I'm not sure if they support having an 'account-level' token (to manage all Railway projects for instance).
Edit: Apparently there exists an un-documented
RAILWAY_API_TOKENvariable for account-level access for the Railway CLI. This works great, and I opened a PR (#481) to create a new plugin for the Railway CLI.feat: Create Railway CLI shell plugin (1Password#151)
aryanprince commentedon Aug 20, 2024
Update: Apparently there exists an un-documented
RAILWAY_API_TOKENvariable for account-level access for the Railway CLI as mentioned here. This works great, and I opened a PR (#481) to create a new 1Password CLI Shell Plugin for the Railway CLI.