[1Password] command line client & ruby library [1password]: https://agilebits.com/onepassword
$ gem install 1pass
Display all keychain entries (Master password not required). By default, the keychain is looked up at $HOME/Library/Application Support/1Password/1Password.agilekeychain
$ 1pass --list
mail.google.com
github.com
rubygems.org
Display all fields for the specified key
$ 1pass --key mail.google.com
Enter your master password: ********
{"value"=>"my-email-id", "id"=>"Email", "name"=>"Email", "type"=>"E", "designation"=>"username"}
{"value"=>"my-secret-password", "id"=>"Passwd", "name"=>"Passwd", "type"=>"P", "designation"=>"password"}
{"value"=>"Sign in", "id"=>"signIn", "name"=>"signIn", "type"=>"I"}
Display value for the specified field
1pass --key mail.google.com --field password
Enter your master password: ********
my-secret-password
require '1pass'
agile_keychain = AgileKeychain.new(<keychain_path (optional)>)
agile_keychain.list
agile_keychain.load(<master-password>,<key>,<field (optional)>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Licensed under MIT. Please refer to LICENSE file for details.
This project is an unofficial command-line client for [1Password] and is not supported by [AgileBits]. [agilebits]: https://agilebits.com