1 .\" Copyright (c) 2022, 2023 Omar Polo <op@omarpolo.com>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27 is a simple password manager.
28 Passwords are stored as a directory tree where every password is a
34 repository with a worktree checked out at
35 .Pa ~/.password-store .
36 The only restriction is that a special file called
38 containing the GPG recipient must exist in the root of the directory tree
43 Password entries can be referenced using the path relative to the
50 provides global and command-specific options.
51 Global options must precede the command name, and are as follows:
54 Display usage information and exit immediately.
57 The following commands are available:
59 .It Cm cat Ar entries ...
60 Decrypt and print the content of
64 Modify the content of the given
67 .It Cm find Op Ar pattern
68 Print the entries of the store one per line, optionally filtered by
71 .It Cm mv Ar from Ar to
72 Rename a password entry, doesn't work with directories.
77 .It Cm rm Ar entries ...
81 .It Cm tee Oo Fl q Oc Ar entry
82 Persist the data read from standard input into the store under the given
84 name and then print it again on the standard output unless the
95 Alternative path to the password store directory tree.
96 .It Ev VISUAL , Ev EDITOR
102 text editor will be used in order to given it the attention
107 .It Pa ~/.password-store
108 Default password store.
109 .It Pa ~/.password-store/.gpg-id
110 File containing the GPG recipient used to encrypt the passwords.
115 A got repository and password store can be initialized as follows:
116 .Bd -literal -offset indent
117 $ mkdir ~/.password-store
118 $ echo foo@example.com > ~/.password-store/.gpg-id
119 $ gotadmin init ~/git/pass.git
120 $ got import -r ~/git/pass.git -m 'initial import' ~/.password-store
121 $ got checkout -E ~/git/pass.git ~/.password-store
126 for more information.
131 .Pa ~/.password-store
132 and check out it again using
135 Generate a random password and save it to the clipboard:
136 .Bd -literal -offset indent
137 $ pwg | plass tee entry/name | xsel -b
140 Display the entries matching
142 arranged comfortably for reading in a terminal window:
143 .Bd -literal -offset indent
144 $ plass find key | rs
147 Enable tab-completion of
149 command names and entries in
151 .Bd -literal -offset indent
152 $ set -A complete_plass_1 -- cat edit find mv rm tee
153 $ set -A complete_plass -- $(plass find)
161 was heavily influenced by
163 in the design, but it's a different implementation that prioritizes ease
164 of use and composability.
169 utility was written by
170 .An Omar Polo Aq Mt op@omarpolo.com .
174 output format isn't designed to handle files containing newlines.
178 or similar if it's a concern.
182 is not able to move directory trees, only file entries.
186 sub-command, the store initialization must be performed manually.