1 884d5b5c 2023-12-31 aa .Dd December 31, 2023
6 884d5b5c 2023-12-31 aa .Nd gpg-based secret (or password) manager
9 d9354c43 2023-05-30 aa .Op Fl d Ar dir
10 884d5b5c 2023-12-31 aa .Op Fl g Ar command
12 d9354c43 2023-05-30 aa .Op Ar arg ...
13 d9354c43 2023-05-30 aa .Sh DESCRIPTION
16 884d5b5c 2023-12-31 aa is a secret manager.
17 884d5b5c 2023-12-31 aa Secrets are stored in a directory tree as files, encrypted with
20 884d5b5c 2023-12-31 aa provides several commands for manipulating secrets.
21 d9354c43 2023-05-30 aa Commands may be specified by their shortest unique prefix (all characters
22 d9354c43 2023-05-30 aa after are ignored).
23 d9354c43 2023-05-30 aa Commands may accept additional arguments.
24 d9354c43 2023-05-30 aa Commands may be preceeded by global options as follows:
25 d9354c43 2023-05-30 aa .Bl -tag -width Ds
26 d9354c43 2023-05-30 aa .It Fl d Ar dir
27 884d5b5c 2023-12-31 aa The directory to store and retrieve secrets from.
30 884d5b5c 2023-12-31 aa .It Fl g Ar command
40 d9354c43 2023-05-30 aa commands are as follows:
41 d9354c43 2023-05-30 aa .Bl -tag -width Ds
47 884d5b5c 2023-12-31 aa Create a new secret
49 884d5b5c 2023-12-31 aa The new secret is read from stdin.
50 884d5b5c 2023-12-31 aa If used from a TTY without the
52 884d5b5c 2023-12-31 aa flag, a single line is read twice, and not echoed.
53 884d5b5c 2023-12-31 aa Otherwise, an arbitrary amount of lines is read normally once.
55 884d5b5c 2023-12-31 aa List existing secrets, using the command in
58 d9354c43 2023-05-30 aa .It Cm mv Ar from Ar to
63 884d5b5c 2023-12-31 aa .It Cm rm Ar name ...
64 884d5b5c 2023-12-31 aa Remove secrets specified on the command line.
66 884d5b5c 2023-12-31 aa will ask for confirmation before each removal.
67 d9354c43 2023-05-30 aa .It Cm show Ar name
68 884d5b5c 2023-12-31 aa Decrypt the secret
70 884d5b5c 2023-12-31 aa and print plaintext to stdout.
72 d9354c43 2023-05-30 aa .Sh ENVIRONMENT
73 884d5b5c 2023-12-31 aa .Bl -tag -width XDG_DATA_HOME
74 d9354c43 2023-05-30 aa .It Ev GPM_DIR
75 884d5b5c 2023-12-31 aa Directory in which the secrets are stored.
76 884d5b5c 2023-12-31 aa .It Ev GPM_LSCMD
77 884d5b5c 2023-12-31 aa Shell command used for the
81 d9354c43 2023-05-30 aa .It Ev XDG_DATA_HOME
83 d9354c43 2023-05-30 aa .Ev XDG_DATA_HOME
86 884d5b5c 2023-12-31 aa isn't, the default secret directory is
87 d9354c43 2023-05-30 aa .Pa $XDG_DATA_HOME/gpm .
90 d9354c43 2023-05-30 aa .Bl -tag -width Ds
91 d9354c43 2023-05-30 aa .It Pa $HOME/.gpm
92 884d5b5c 2023-12-31 aa The default secret directory if neither
95 d9354c43 2023-05-30 aa .Ev XDG_DATA_HOME
98 d9354c43 2023-05-30 aa .Sh EXIT STATUS
101 d9354c43 2023-05-30 aa Tab-completion may be set, e.g. with
103 d9354c43 2023-05-30 aa .Bd -literal -offset indent
104 d9354c43 2023-05-30 aa set -A complete_gpm_1 -- add ls mv rm show
105 884d5b5c 2023-12-31 aa set -A complete_gpm -- $(gpm ls)
112 884d5b5c 2023-12-31 aa .An Alexander Arkhipov Aq Mt aa@manpager.org .