An extension for the standard unix password manager that generates a CSV file from specified key-value pairs in the metadata. A use case for pass csv
could be to generate a summary to which service you gave your address and phone number across the password store.
A password file can store arbitrary information in the lines after the password:
Yw|ZSNH!}z"6{ym9pI
URL: *.amazon.com/*
Username: [email protected]
has-address: true
has-tel: false
Account Created: 2021-02-01
pass csv key1 key2 ...
iterates over the password store, searches for the specified keys and prints their value. The key-value pairs in the password files must be colon-delimited. The password itself is never read. The first column is always the name of the password file. If a specified key is not found in a password file, the corresponding value in the CSV is -
.
pass csv has-addr has-tel "Account Created" > summary.csv
generates the following CSV file:
"name","has-addr","has-tel","Account Created"
"amazon.com","true","false","2021-02-01"
"google.com","false","true","-"
name | has-addr | has-tel | Account Created |
---|---|---|---|
amazon.com | true | false | 2021-02-01 |
google.com | false | true | - |
make install
- On MacOS via Homebrew with this tap
- Alternatively, you can copy
src/csv.bash
to~/.password-store/.extensions
, make it executable and set thePASSWORD_STORE_ENABLE_EXTENSIONS
environment variable totrue
.