Setup
pass init <gpg-id>
Create the store for a GPG key
Re-encrypts existing entries if the key changes. Pass several
IDs to share the store.
pass init -p <subfolder> <gpg-id>
Use a different key for a folder
Writes a .gpg-id in that folder.
pass git init
Turn the store into a git repo
Commits existing contents; later changes are committed
automatically.
pass git remote add origin <url>
Add a remote to the store
pass version
Show version
PASSWORD_STORE_DIR=<dir> pass
Use another store location
Default is ~/.password-store.
PASSWORD_STORE_ENABLE_EXTENSIONS=true
Enable user extensions
Add and edit
pass insert <name>
Add an entry, typed twice hidden
pass insert -m <name>
Add a multi-line entry
Finish with Ctrl+D.
pass insert -e <name>
Add an entry with visible input
pass insert -f <name>
Overwrite without asking
pass edit <name>
Edit an entry in $EDITOR
Temp files go to /dev/shm when available.
pass generate <name> <length>
Generate a random password
pass generate -n <name> <length>
Generate without symbols
pass generate -c <name> <length>
Generate and copy, do not print
pass generate -i <name> <length>
Replace only the first line
Keeps the other lines of the entry.
pass generate -f <name> <length>
Overwrite without asking
PASSWORD_STORE_GENERATED_LENGTH=<n>
Default generated length
PASSWORD_STORE_CHARACTER_SET=<set>
Characters allowed in generate
Interpreted by tr.
Teams and security
pass init <id1> <id2>
Encrypt for several recipients
PASSWORD_STORE_KEY=<ids> pass
Override the key for this run
PASSWORD_STORE_GPG_OPTS=<opts>
Extra options for every gpg call
PASSWORD_STORE_SIGNING_KEY=<fingerprint>
Require signed .gpg-id files
Takes full 40-character fingerprints.
PASSWORD_STORE_UMASK=<mask>
Permissions for new files