Project

acm

0.0
A long-lived project that still receives updates
A simple account manager (NOT SECURE ;p).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.4.10
>= 13.0

Runtime

>= 0
>= 0
 Project Readme

acm

A simple account manager. This is NOT secure, excuse me ;p.

Installation

Install it yourself as:

> gem install acm

If you are using Windows, please install ffi gem:

> gem install ffi

Usage

At first, init database:

> acm init

The database file is saved as "ENV['ACMDB']" or "ENV['HOME']/.accounts", in YAML. Set location of database file to environment variable 'ACMDB', if you need.

Add account:

> acm add takatoh.m@gmail.com
(acm) Key? email
(acm) Value? takatoh.m@gmail.com
(acm) Key? password
(acm) Value? xxxxxxxx
(acm) Key?                         # Enter to exit.

Then added account to database.

List account(s):

> acm list
takatoh.m@gmail.com

Search account(s):

> acm search gmail
takatoh.m@gmail.com

Show details:

> acm show takatoh.m@gmail.com
Account: takatoh.m@gmail.com
  email: takatoh.m@gmail.com
  password: ******

In default, value of password is masked. If you need to see the password, give --pass option. Or --clip option copies the password to clipboard.

Update value of key:

> acm update takatoh.m@gmail.com password yyyyyyyy

> acm show --pass takatoh.m@gmail.com
Account: takatoh.m@gmail.com
  email: takatoh.m@gmail.com
  password: yyyyyyyy

Remove key and value:

> acm remove-key takatoh.m@gmail.com password

> acm show takatoh.m@gmail.com
Account: takatoh.m@gmail.com
  email: takatoh.m@gmail.com

Create alias for account:

> acm alias google takatoh.m@gmail.com
Create alias: google for takatoh.m@gmail.com

> acm show google
NOTE: 'google' is alias for 'takatoh.m@gmail.com'.
Account: takatoh.m@gmail.com
  email: takatoh.m@gmail.com

Rename account:

> acm rename-account takatoh.m@gmail.com Gmail

> acm show Gmail
Account: Gmail
  email: takatoh.m@gmail.com

The alias tracks account name changes.

> acm show google
NOTE: 'google' is alias for 'Gmail'.
Account: Ggmail
  email: takatoh.m@gmail.com

And remove account:

> acm remove-account Gmail
Account: Gmail
  email: takatoh.m@gmail.com

Are you sure?(y/n) y               # Enter 'y' to remove.

> acm show Gmail
No such account: Gmail

The alias is also removed.

> acm show google
No such account: google

Special key: login-with

Special key login-with is reference to other account.

> acm add SomeWebService
(acm) Key? login-with
(acm) Value? GitHub
(acm) Key?                         # Enter to exit.

To track reference, use acm show command with --track option.

> acm show --track SomeWebService

License

MIT License