HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pass — Store and read passwords or other sensitive data. All data is GPG-encrypted, and managed with a Git

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandstoreandreadclipassotherpasswords

Problem

How to use the pass command: Store and read passwords or other sensitive data. All data is GPG-encrypted, and managed with a Git repository. More information: <https://git.zx2c4.com/password-store/about/>.

Solution

pass — Store and read passwords or other sensitive data. All data is GPG-encrypted, and managed with a Git repository. More information: <https://git.zx2c4.com/password-store/about/>.

Initialize (or re-encrypt) the storage using one or more GPG IDs:
pass init {{gpg_id_1 gpg_id_2 ...}}


Save a new password and additional information (press <Ctrl d> on a new line to complete):
pass insert {{[-m|--multiline]}} {{path/to/data}}


Edit an entry:
pass edit {{path/to/data}}


Copy a password (first line of the data file) to the clipboard:
pass {{[-c|--clip]}} {{path/to/data}}


List the whole store tree:
pass


Generate a new random password with a given length, and copy it to the clipboard:
pass generate {{[-c|--clip]}} {{path/to/data}} {{num}}


Initialize a new Git repository (any changes done by pass will be committed automatically):
pass git init


Run a Git command on behalf of the password storage:
pass git {{command}}

Code Snippets

Initialize (or re-encrypt) the storage using one or more GPG IDs

pass init {{gpg_id_1 gpg_id_2 ...}}

Save a new password and additional information (press `<Ctrl d>` on a new line to complete)

pass insert {{[-m|--multiline]}} {{path/to/data}}

Edit an entry

pass edit {{path/to/data}}

Copy a password (first line of the data file) to the clipboard

pass {{[-c|--clip]}} {{path/to/data}}

List the whole store tree

pass

Context

tldr-pages: common/pass

Revisions (0)

No revisions yet.