A Enpass command line client for Linux and macOS based on enpass-decryptor by steffen9000.
Warning: I no longer use Enpass personally, so this repo needs a new maintainer. I will however still merge PRs.
-
Required system packages:
sqlcipher-dev
python3
git
-
Get the code:
$ git clone https://github.com/HazCod/enpass-cli pass && cd pass/
-
Required python packages:
$ pip3 install -r requirements.txt
-
Symlink to 'pass':
$ sudo cp pass.py /usr/local/bin/pass && sudo chown $USER /usr/local/bin/pass
-
For autocompletion, add this line to your
.bashrc
file:$ eval "$(register-python-argcomplete pass)"
For the current command line help, please run pass --help
.
The pass
command currently accepts the following arguments and commands:
Arguments:
-
-q
,--quiet
supress Standard Output Notifications -
-w WALLET
,--wallet WALLET
Define the Enpass wallet file -
-a
,--alldata
Displays all of the known data in of each card (useful in cases where you want to look at Software Licences, for instance) -
--please_show_me_the_passwords
Display passwords where present
Commands:
get
andlist
displays the cards on the command line (use '*' to list all),copy
copies the password into the pasteboard, andprint
prints the password to STDOUT iff--please_show_me_the_passwords
has been given.
Examples:
-
If enpass has already been initialized and using the default
~/Documents/Enpass/walletx.db
use this syntax:$ pass get github $ pass copy github
-
Specify another walletx file using the -w argument:
$ pass -w /Users/user/alternate-dir/walletx.db get github $ pass -w /Users/user/alternate-dir/walletx.db copy github
-
Delete password stored in keyring:
$ python3 -c "import keyring; keyring.delete_password('enpass', 'enpass')"
-
If you decline to store your password, an empty file is created in ~/Documents/Enpass/ called .store_decline. If you change your mind and would like to store the password, remove this file:
$ rm ~/Documents/Enpass/.store_decline
-
Dsiplay all known items about an entry:
$ pass list -a Chikoo