Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin: Railway #151

Open
1 task done
arunsathiya opened this issue Jan 18, 2023 · 5 comments · May be fixed by #481
Open
1 task done

New plugin: Railway #151

arunsathiya opened this issue Jan 18, 2023 · 5 comments · May be fixed by #481
Assignees
Labels
plugin-request Request for a new shell plugin

Comments

@arunsathiya
Copy link
Contributor

Platform or tool

Railway

Relevant links

Goal or desired behavior

Authenticate to the Railway platform.

Contribution

  • I'd be up for building the plugin myself.

Additional information

No response

@arunsathiya arunsathiya added the plugin-request Request for a new shell plugin label Jan 18, 2023
@arunsathiya
Copy link
Contributor Author

I have done a bit of research over the last week:

  • 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.

I am currently talking to Railway staff on Discord to get more info.

@arunsathiya
Copy link
Contributor Author

Quick update from the Discord conversation:

  • Railway devs are busy building a v2 of their CLI, in Rust.
  • Until that version is out (expected late this week), we wouldn't know the exact environment variables or custom config path/flag.

Time to wait.

@arunsathiya
Copy link
Contributor Author

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
Copy link

aryanprince commented 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_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.

@aryanprince
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin-request Request for a new shell plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants