Keepassxc-cli
From wikinotes
official command line interface for keepassxc.
Install
pacman -S keepassxc
Usage
Modes
keepassxc-cli open /foo/var/database.kdbx # interactive shell keepassxc-cli ls /foo/bar/database.kdbx # run command from shellCommands
help [COMMAND] # list commandsshow [PATH] # show an entry show -s [PATH] # show an entry, with protected fields decrypted show -a password [PATH] # retrieve a specific attribute (decrypted)ls [DIRECTORY] # list dirs locate [SEARCH] # search passwords/dirs mv add rm rmdir
Configuration
Readline
NOTE:
Tab-Completion is being investigated in this issue https://github.com/keepassxreboot/keepassxc/issues/4676
You can customize your line-editor with readline (which includes vi-mode).