Keepassxc-cli: Difference between revisions
From wikinotes
(Created page with "official command line interface for keepassxc. = Install = <blockquote> <syntaxhighlight lang="bash"> pacman -S keepassxc </syntaxhighlight> </blockquote><!-- Install --> =...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
= Usage = | = Usage = | ||
<blockquote> | |||
== Modes == | |||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
keepassxc-cli ls /foo/bar/database.kdbx | keepassxc-cli open /foo/var/database.kdbx # interactive shell | ||
keepassxc-cli ls /foo/bar/database.kdbx # run command from shell | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Modes --> | |||
== Commands == | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
help [COMMAND] # list commands | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
show [PATH] # show an entry | |||
show -s [PATH] # show an entry, with protected fields decrypted | |||
show -a password [PATH] # retrieve a specific attribute (decrypted) | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
ls [DIRECTORY] # list dirs | |||
locate [SEARCH] # search passwords/dirs | |||
mv | |||
add | |||
rm | |||
rmdir | |||
</syntaxhighlight> | |||
</blockquote><!-- Commands --> | |||
</blockquote><!-- Usage --> | </blockquote><!-- Usage --> | ||
= Configuration = | |||
<blockquote> | |||
== Readline == | |||
<blockquote> | |||
{{ 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). | |||
</blockquote><!-- Readline --> | |||
</blockquote><!-- Configuration --> |
Latest revision as of 15:50, 27 March 2022
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).