Skip to content

timcase/1pass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1pass Gem Version Build Status Coverage Status

[1Password] command line client & ruby library [1password]: https://agilebits.com/onepassword

Installation

$ gem install 1pass

Command line usage

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

Library usage

require '1pass'

agile_keychain = AgileKeychain.new(<keychain_path (optional)>)
agile_keychain.list
agile_keychain.load(<master-password>,<key>,<field (optional)>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Inspiration

License & Disclaimer

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

About

1Password command line client & ruby library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.1%
  • JavaScript 0.9%