You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: share/docs/man/keepassxc-cli.1
+64-61Lines changed: 64 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -7,161 +7,164 @@ keepassxc-cli \- command line interface for the \fBKeePassXC\fP password manager
7
7
.Bkeepassxc-cli
8
8
.Icommand
9
9
.B[
10
-
-I options
10
+
.Ioptions
11
11
.B]
12
12
13
13
.SH DESCRIPTION
14
14
\fBkeepassxc-cli\fP is the command line interface for the \fBKeePassXC\fP password manager. It provides the ability to query and modify the entries of a KeePass database, directly from the command line.
15
15
16
16
.SH COMMANDS
17
17
18
-
.IP"add [options] <database> <entry>"
18
+
.IP"\fBadd\fP [options] <database> <entry>"
19
19
Adds a new entry to a database. A password can be generated (\fI-g\fP option), or a prompt can be displayed to input the password (\fI-p\fP option).
20
20
The same password generation options as documented for the generate command can be used when the \fI-g\fP option is set.
Copies the password or the current TOTP (\fI-t\fP option) of a database entry to the clipboard. If multiple entries with the same name exist in different groups, only the password for the first one is going to be copied. For copying the password of an entry in a specific group, the group path to the entry should be specified as well, instead of just the name. Optionally, a timeout in seconds can be specified to automatically clear the clipboard.
27
27
28
-
.IP"close"
28
+
.IP"\fBclose\fP"
29
29
In interactive mode, closes the currently opened database (see \fIopen\fP).
30
30
31
-
.IP"create [options] <database>"
31
+
.IP"\fBdb-create\fP [options] <database>"
32
32
Creates a new database with a key file and/or password. The key file will be created if the file that is referred to does not exist. If both the key file and password are empty, no database will be created.
33
33
34
-
.IP"diceware [options]"
34
+
.IP"\fBdb-info\fP [options] <database>"
35
+
Show a database's information.
36
+
37
+
.IP"\fBdiceware\fP [options]"
35
38
Generates a random diceware passphrase.
36
39
37
-
.IP"edit [options] <database> <entry>"
40
+
.IP"\fBedit\fP [options] <database> <entry>"
38
41
Edits a database entry. A password can be generated (\fI-g\fP option), or a prompt can be displayed to input the password (\fI-p\fP option).
39
42
The same password generation options as documented for the generate command can be used when the \fI-g\fP option is set.
40
43
41
-
.IP"estimate [options] [password]"
44
+
.IP"\fBestimate\fP [options] [password]"
42
45
Estimates the entropy of a password. The password to estimate can be provided as a positional argument, or using the standard input.
43
46
44
-
.IP"exit"
47
+
.IP"\fBexit\fP"
45
48
Exits interactive mode. Synonymous with \fIquit\fP.
46
49
47
-
.IP"export [options] <database>"
50
+
.IP"\fBexport\fP [options] <database>"
48
51
Exports the content of a database to standard output in the specified format (defaults to XML).
49
52
50
-
.IP"generate [options]"
53
+
.IP"\fBgenerate\fP [options]"
51
54
Generates a random password.
52
55
53
-
.IP"help [command]"
56
+
.IP"\fBhelp\fP [command]"
54
57
Displays a list of available commands, or detailed information about the specified command.
55
58
56
-
.IP"import [options] <xml> <database>"
59
+
.IP"\fBimport\fP [options] <xml> <database>"
57
60
Imports the contents of an XML database to the target database.
58
61
59
-
.IP"locate [options] <database> <term>"
62
+
.IP"\fBlocate\fP [options] <database> <term>"
60
63
Locates all the entries that match a specific search term in a database.
61
64
62
-
.IP"ls [options] <database> [group]"
65
+
.IP"\fBls\fP [options] <database> [group]"
63
66
Lists the contents of a group in a database. If no group is specified, it will default to the root group.
Merges two databases together. The first database file is going to be replaced by the result of the merge, for that reason it is advisable to keep a backup of the two database files before attempting a merge. In the case that both databases make use of the same credentials, the \fI--same-credentials\fP or \fI-s\fP option can be used.
Opens the given database in a shell-style interactive mode. This is useful for performing multiple operations on a single database (e.g. \fIls\fP followed by \fIshow\fP).
76
79
77
-
.IP"quit"
80
+
.IP"\fBquit\fP"
78
81
Exits interactive mode. Synonymous with \fIexit\fP.
79
82
80
-
.IP"rm [options] <database> <entry>"
83
+
.IP"\fBrm\fP [options] <database> <entry>"
81
84
Removes an entry from a database. If the database has a recycle bin, the entry will be moved there. If the entry is already in the recycle bin, it will be removed permanently.
82
85
83
-
.IP"rmdir [options] <database> <group>"
86
+
.IP"\fBrmdir\fP [options] <database> <group>"
84
87
Removes a group from a database. If the database has a recycle bin, the group will be moved there. If the group is already in the recycle bin, it will be removed permanently.
85
88
86
-
.IP"show [options] <database> <entry>"
89
+
.IP"\fBshow\fP [options] <database> <entry>"
87
90
Shows the title, username, password, URL and notes of a database entry. Can also show the current TOTP. Regarding the occurrence of multiple entries with the same name in different groups, everything stated in the \fIclip\fP command section also applies here.
88
91
89
92
.SH OPTIONS
90
93
91
94
.SS "General options"
92
95
93
-
.IP"--debug-info"
96
+
.IP"\fB--debug-info\fP"
94
97
Displays debugging information.
95
98
96
-
.IP"-k, --key-file <path>"
99
+
.IP"\fB-k\fP, \fB--key-file\fP <path>"
97
100
Specifies a path to a key file for unlocking the database. In a merge operation this option, is used to specify the key file path for the first database.
98
101
99
-
.IP"--no-password"
102
+
.IP"\fB--no-password\fP"
100
103
Deactivates the password key for the database.
101
104
102
-
.IP"-y, --yubikey <slot>"
105
+
.IP"\fB-y\fP, \fB--yubikey\fP <slot>"
103
106
Specifies a yubikey slot for unlocking the database. In a merge operation this option is used to specify the yubikey slot for the first database.
104
107
105
-
.IP"-q, --quiet <path>"
108
+
.IP"\fB-q\fP, \fB--quiet\fP <path>"
106
109
Silences password prompt and other secondary outputs.
107
110
108
-
.IP"-h, --help"
111
+
.IP"\fB-h\fP, \fB--help\fP"
109
112
Displays help information.
110
113
111
-
.IP"-v, --version"
114
+
.IP"\fB-v\fP, \fB--version\fP"
112
115
Displays the program version.
113
116
114
117
115
118
.SS "Merge options"
116
119
117
-
.IP"-d, --dry-run <path>"
120
+
.IP"\fB-d\fP, \fB--dry-run\fP <path>"
118
121
Prints the changes detected by the merge operation without making any changes to the database.
119
122
120
-
.IP"--key-file-from <path>"
123
+
.IP"\fB--key-file-from\fP <path>"
121
124
Sets the path of the key file for the second database.
122
125
123
-
.IP"--no-password-from"
126
+
.IP"\fB--no-password-from\fP"
124
127
Deactivates password key for the database to merge from.
125
128
126
-
.IP"--yubikey-from <slot>"
129
+
.IP"\fB--yubikey-from\fP <slot>"
127
130
Yubikey slot for the second database.
128
131
129
-
.IP"-s, --same-credentials"
132
+
.IP"\fB-s\fP, \fB--same-credentials\fP"
130
133
Uses the same credentials for unlocking both databases.
131
134
132
135
133
136
.SS "Add and edit options"
134
137
The same password generation options as documented for the generate command can be used
135
138
with those 2 commands when the -g option is set.
136
139
137
-
.IP"-u, --username <username>"
140
+
.IP"\fB-u\fP, \fB--username\fP <username>"
138
141
Specifies the username of the entry.
139
142
140
-
.IP"--url <url>"
143
+
.IP"\fB--url\fP <url>"
141
144
Specifies the URL of the entry.
142
145
143
-
.IP"-p, --password-prompt"
146
+
.IP"\fB-p\fP, \fB--password-prompt\fP"
144
147
Uses a password prompt for the entry's password.
145
148
146
-
.IP"-g, --generate"
149
+
.IP"\fB-g\fP, \fB--generate\fP"
147
150
Generates a new password for the entry.
148
151
149
152
150
153
.SS "Edit options"
151
154
152
-
.IP"-t, --title <title>"
155
+
.IP"\fB-t\fP, \fB--title\fP <title>"
153
156
Specifies the title of the entry.
154
157
155
158
156
159
.SS "Estimate options"
157
160
158
-
.IP"-a, --advanced"
161
+
.IP"\fB-a\fP, \fB--advanced\fP"
159
162
Performs advanced analysis on the password.
160
163
161
164
162
165
.SS "Analyze options"
163
166
164
-
.IP"-H, --hibp <filename>"
167
+
.IP"\fB-H\fP, \fB--hibp\fP <filename>"
165
168
Checks if any passwords have been publicly leaked, by comparing against the given
166
169
list of password SHA-1 hashes, which must be in "Have I Been Pwned" format. Such
167
170
files are available from https://haveibeenpwned.com/Passwords; note that they
@@ -171,79 +174,79 @@ hour or so).
171
174
172
175
.SS "Clip options"
173
176
174
-
.IP"-t, --totp"
177
+
.IP"\fB-t\fP, \fB--totp\fP"
175
178
Copies the current TOTP instead of current password to clipboard. Will report
176
179
an error if no TOTP is configured for the entry.
177
180
178
181
179
182
.SS "Show options"
180
183
181
-
.IP"-a, --attributes <attribute>..."
184
+
.IP"\fB-a\fP, \fB--attributes\fP <attribute>..."
182
185
Shows the named attributes. This option can be specified more than once,
183
186
with each attribute shown one-per-line in the given order. If no attributes are
184
187
specified and \fI-t\fP is not specified, a summary of the default attributes is given.
185
188
Protected attributes will be displayed in clear text if specified explicitly by this option.
186
189
187
-
.IP"-s, --show-protected"
190
+
.IP"\fB-s\fP, \fB--show-protected\fP"
188
191
Shows the protected attributes in clear text.
189
192
190
-
.IP"-t, --totp"
193
+
.IP"\fB-t\fP, \fB--totp\fP"
191
194
Also shows the current TOTP, reporting an error if no TOTP is configured for
192
195
the entry.
193
196
194
197
195
198
.SS "Diceware options"
196
199
197
-
.IP"-W, --words <count>"
200
+
.IP"\fB-W\fP, \fB--words\fP <count>"
198
201
Sets the desired number of words for the generated passphrase. [Default: 7]
199
202
200
-
.IP"-w, --word-list <path>"
203
+
.IP"\fB-w\fP, \fB--word-list\fP <path>"
201
204
Sets the Path of the wordlist for the diceware generator. The wordlist must
202
205
have > 1000 words, otherwise the program will fail. If the wordlist has < 4000
203
206
words a warning will be printed to STDERR.
204
207
205
208
206
209
.SS "Export options"
207
210
208
-
.IP"-f, --format"
211
+
.IP"\fB-f\fP, \fB--format\fP"
209
212
Format to use when exporting. Available choices are xml or csv. Defaults to xml.
210
213
211
214
212
215
.SS "List options"
213
216
214
-
.IP"-R, --recursive"
217
+
.IP"\fB-R\fP, \fB--recursive\fP"
215
218
Recursively lists the elements of the group.
216
219
217
-
.IP"-f, --flatten"
220
+
.IP"\fB-f\fP, \fB--flatten\fP"
218
221
Flattens the output to single lines. When this option is enabled, subgroups and subentries will be displayed with a relative group path instead of indentation.
219
222
220
223
.SS "Generate options"
221
224
222
-
.IP"-L, --length <length>"
225
+
.IP"\fB-L\fP, \fB--length\fP <length>"
223
226
Sets the desired length for the generated password. [Default: 16]
224
227
225
-
.IP"-l --lower"
228
+
.IP"\fB-l\fP, \fB--lower\fP"
226
229
Uses lowercase characters for the generated password. [Default: Enabled]
227
230
228
-
.IP"-U --upper"
231
+
.IP"\fB-U\fP, \fB--upper\fP"
229
232
Uses uppercase characters for the generated password. [Default: Enabled]
230
233
231
-
.IP"-n --numeric"
234
+
.IP"\fB-n\fP, \fB--numeric\fP"
232
235
Uses numbers characters for the generated password. [Default: Enabled]
233
236
234
-
.IP"-s --special"
237
+
.IP"\fB-s\fP, \fB--special\fP"
235
238
Uses special characters for the generated password. [Default: Disabled]
236
239
237
-
.IP"-e --extended"
240
+
.IP"\fB-e\fP, \fB--extended\fP"
238
241
Uses extended ASCII characters for the generated password. [Default: Disabled]
239
242
240
-
.IP"-x --exclude <chars>"
243
+
.IP"\fB-x\fP, \fB--exclude\fP <chars>"
241
244
Comma-separated list of characters to exclude from the generated password. None is excluded by default.
242
245
243
-
.IP"--exclude-similar"
246
+
.IP"\fB--exclude-similar\fP"
244
247
Exclude similar looking characters. [Default: Disabled]
245
248
246
-
.IP"--every-group"
249
+
.IP"\fB--every-group\fP"
247
250
Include characters from every selected group. [Default: Disabled]
Copy file name to clipboardExpand all lines: share/docs/man/keepassxc.1
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,25 +14,25 @@ keepassxc \- password manager
14
14
\fBKeePassXC\fP is a free/open-source password manager or safe which helps you to manage your passwords in a secure way. The complete database is always encrypted with the industry-standard AES (alias Rijndael) encryption algorithm using a 256 bit key. KeePassXC uses a database format that is compatible with KeePass Password Safe. Your wallet works offline and requires no Internet connection.
0 commit comments