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 user@example.com
# Initialize Git repository integration
pass git init
pass git remote add origin git@github.com:user/passwords.git
pass git push -u --all
Storing & Generating Credentials
# Add a password manually
pass insert email/alice@example.com
# 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/alice@example.com
# Copy password to clipboard and clear after 45 seconds (-c)
pass -c email/alice@example.com
# Search for entries matching query
pass find github
Editing & Moving Entries
# Edit password entry in default $EDITOR
pass edit email/alice@example.com
# Rename or move entry
pass mv email/alice@example.com 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