pass is the standard Unix password manager, following the Unix philosophy by managing encrypted files in a directory tree with GPG and Git.
Initial Setup
# Initialize password store with your GPG key ID
pass init [email protected]
# Initialize Git repository integration
pass git init
pass git remote add origin [email protected]:user/passwords.git
pass git push -u --all
Storing & Generating Credentials
# Add a password manually
pass insert email/[email protected]
# Add multi-line password entry (metadata, notes)
pass insert -m server/root
# Generate a 20-character secure password and store it
pass generate work/aws-iam 20
# Generate password without symbols
pass generate -n personal/wifi 16
Retrieving & Searching Passwords
# List all password entries in directory tree
pass
# Display password on screen
pass show email/[email protected]
# Copy password to clipboard and clear after 45 seconds (-c)
pass -c email/[email protected]
# Search for entries matching query
pass find github
Editing & Moving Entries
# Edit password entry in default $EDITOR
pass edit email/[email protected]
# Rename or move entry
pass mv email/[email protected] work/email
# Delete entry
pass rm personal/old_account
Git Synchronization
# Pull changes from remote Git server
pass git pull
# Push local commits to remote Git server
pass git push