Options (5)
-g, --generatebooleanAdd an entry with an auto-generated password
Example:
keepassxc-cli add {{[-g|--generate]}} {{path/to/database_file}} {{entry_name}}-t, --totpbooleanCopy a TOTP code to the clipboard
Example:
keepassxc-cli clip {{[-t|--totp]}} {{path/to/database_file}} {{entry_name}}-W, --wordsbooleanGenerate a passphrase with 7 words
Example:
keepassxc-cli diceware {{[-W|--words]}} 7booleanGenerate a password with 16 printable ASCII characters
Example:
keepassxc-cli generate {{[-lUns|--lower --upper --numeric --special]}} {{[-L|--length]}} 16-L, --lengthbooleanGenerate a password with 16 printable ASCII characters
Example:
keepassxc-cli generate {{[-lUns|--lower --upper --numeric --special]}} {{[-L|--length]}} 16Examples (8)
Search entries
keepassxc-cli search path/to/database_file nameList the contents of a folder
keepassxc-cli ls path/to/database_file path/to/directoryAdd an entry with an auto-generated password
keepassxc-cli add [-g|--generate] path/to/database_file entry_nameDelete an entry
keepassxc-cli rm path/to/database_file entry_nameCopy an entry's password to the clipboard
keepassxc-cli clip path/to/database_file entry_nameCopy a TOTP code to the clipboard
keepassxc-cli clip [-t|--totp] path/to/database_file entry_nameGenerate a passphrase with 7 words
keepassxc-cli diceware [-W|--words] 7Generate a password with 16 printable ASCII characters
keepassxc-cli generate [-lUns|--lower --upper --numeric --special] [-L|--length] 16made by @shridhargupta | data from tldr-pages