Project

1pass

0.01
No release in over 3 years
Low commit activity in last 3 years
Command line client for AgileBits 1Password
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

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