$linuxjunkies
>

pass(1)

pass is a simple password manager that stores passwords encrypted with GPG in a directory hierarchy on disk.

UbuntuDebianFedoraArch

Synopsis

pass [ insert | show | edit | delete | copy | generate ] [ --clip ] [ --in-place ] [ --force ] [ --multiline ] [ options ] pass-name

Description

pass is a minimal password manager that keeps passwords in GPG-encrypted files organized in a simple directory structure under ~/.password-store/. Each password lives in its own encrypted file, with the directory hierarchy reflecting logical grouping (e.g., email/gmail, social/twitter).

Common workflows: show a password (and optionally copy to clipboard), insert a new password, generate a random password, or edit existing entries. All files are encrypted with your GPG key, so only you can decrypt them.

pass integrates with git for automatic version control, bash completion for pass-names, and various password managers for import/export.

Common options

FlagWhat it does
showDisplay the password for a given pass-name (default action if no subcommand given)
insertPrompt to insert a new password for pass-name
-m, --multilineAllow multiple lines of input when inserting a password
generateGenerate a random password of specified length (default 25 characters)
-c, --clipCopy the password to the clipboard instead of printing it
-f, --forceForce operations to proceed without confirmation prompts
editOpen the encrypted password file in $EDITOR for modification
deleteRemove a password from the store
copyCopy password to clipboard (same as show --clip)
lsList all passwords in the store (tree-like format)
findSearch for passwords matching a pattern
initInitialize a new password store with a GPG key ID

Examples

Display the password for email/gmail entry

pass show email/gmail

Copy email/gmail password to clipboard without printing it

pass show -c email/gmail

Prompt to enter a new password for social/twitter (hidden input)

pass insert social/twitter

Generate a random 16-character password for social/twitter and save it

pass generate social/twitter 16

Open encrypted email/gmail file in your editor to modify password or metadata

pass edit email/gmail

Display all passwords organized by directory structure

pass ls

Remove email/gmail password without asking for confirmation

pass delete -f email/gmail

Search for all password entries containing 'bank' in the path

pass find bank

Related commands