1KWALLETCLI(1) BSD General Commands Manual KWALLETCLI(1)
2
4 kwalletcli — command line interface to the KDE Wallet
5
7 kwalletcli [-q] -hV
8 kwalletcli [-q] -f folder -e entry [-P | -p password]
9
11 The kwalletcli utility is a command line interface to KWallet. It will
12 only work if KDE is running (DCOP) and reachable (via X11). kwalletcli
13 can be used to get password entries from the Wallet, or to write them
14 there.
15
16 The options are as follows:
17
18 -e entry Define the key (entry) to use when accessing the Wallet.
19 Mandatory.
20
21 -f folder Set the folder to use when accessing the Wallet. Mandatory.
22
23 -h Display the usage.
24
25 -P Read the password to write from standard input. Currently
26 limited to 65535 octets.
27
28 -p password Write password into the designated location in the Wallet.
29
30 -q Be more quiet. In combination with -V, do not display any‐
31 thing.
32
33 -V Display the kwalletcli version information.
34
35 Default mode of operation, that is, unless -P or -p are used, is to read
36 the password from the Wallet and print it to standard output as-is, with‐
37 out any trailing newline.
38
39 All input and output is assumed to be in UTF-8. The password string
40 (whether read from standard input or command line) is now converted from
41 “possibly UTF-8 but binary transparent” to standards-conformant UTF-8 for
42 the Qt side, and back upon reading out.
43
45 The kwalletcli utility exits 0 on success or >0 if an error occurred:
46
47 1 The entry specified cannot be found (read access).
48
49 2 The usage was shown.
50
51 3 The Wallet could not be opened. May be a missing DCOP connection.
52 Perhaps DISPLAY is not set.
53
54 4 The folder specified cannot be found (read access).
55
56 5 The folder specified cannot be opened.
57
58 6 The value to the key specified could not be retrieved.
59
60 8 An error occurred trying to write the value.
61
62 The exit codes 1 and 4, on reading, are not fatal; they merely indicate
63 that the folder or entry specified does not exist. The other errors are
64 fatal and may be used to indicate the user that the KWallet should not be
65 used any more during the current session.
66
68 DISPLAY The X11 display to use for communicating with the KDE Wallet.
69
71 kwalletcli_getpin(1)
72
74 kwalletcli was written by mirabilos <m@mirbsd.org> mostly for tarent
75 solutions GmbH.
76
78 Do not use -p password to store it, unless you absolutely must. It is a
79 security risk, because the command line invocation is public information
80 in a normal Unix environment. Use -P instead and provide the password on
81 standard input.
82
83 Beware of trailing newlines, especially outside of mksh(1) scripts!
84
86 If DISPLAY is not set, not valid, or kdeinit or kdeinit4 cannot start for
87 other reasons, kwalletcli may not recover gracefully. In KDE 4 versions,
88 this may even result in a Segmentation fault. The author does not know
89 of a way to catch this early; patches are welcome.
90
91 There is no way (yet) to set a wallet other than the default wallet.
92 While this is a possible enhancement to the kwalletcli CLI, there is no
93 feasible way to expose this functionality to the various front-ends, such
94 as pinentry-kwallet(1), anyway, so the priority of fixing this is low.
95
96BSD August 30, 2016 BSD