shell-plugins
shell-plugins copied to clipboard
feat: Create plugin for Railway CLI
Overview
Created a 1Password CLI Shell Plugin for the Railway CLI.
See GIF below for a quick demo:
Type of change
- [x] Created a new plugin
- [ ] Improved an existing plugin
- [ ] Fixed a bug in an existing plugin
- [ ] Improved contributor utilities or experience
Related Issue(s)
- Resolves: #151
How To Test
- Create a Railway account from here.
- Create an account-level API token from here. Keep this token handy for later.
- Install the Railway CLI using official instructions here or with Homebrew using:
brew install railway
- Running
railway whoamiwill now display an error cus you're not logged in to the CLI. - Setup this new Railway 1Password Shell Plugin locally or using the following commands from inside this repo:
make railway/build
op plugin init railway
- Running
op plugin run -- railway whoamishould now correctly authenticate you to the Railway CLI.
Changelog
Authenticate the Railway CLI using Touch ID and other unlock options with 1Password Shell Plugins.