cargo install kdbx
``` $ kdbx --help
kdbx 0.0.0 KeePass KDBX4 password reader.
Usage:
kdbx [options] [
Commands:
clip Copy password and clear clipboard after specified amount of time.
This is default command if no other provided. Alias c
.
info Display entry's info. Alias `show`, `s`, `i`.
add Add new entry. Alias `a`.
init Init new database.
Options:
-d, --database
Environment variables: KDBX_DEFAULTS Set default arguments (see examples).
Examples: Open a database and copy password to the clipboard after selection: $ kdbx --database /root/secrets.kdbx
Set default database, secret file and options via environment variable:
export KDBX_DEFAULTS="-d$HOME/my.kdbx -k$HOME/.secret -pGt7"
Display selector and then print entry's info:
$ kdbx show
Copy password if only single entry found otherwise display selector:
$ kdbx clip gmail
`clip` command name can be omitted:
$ kdbx gmail
Print password to STDOUT:
$ kdbx github.com | cat
Read password from STDIN:
$ cat /mnt/usb/key | kdbx
```
MIT