LinuxCommandLibrary

keepassxc-cli

command-line interface for KeePassXC password manager

TLDR

List entries in database

$ keepassxc-cli ls [database.kdbx]
copy
Show entry details
$ keepassxc-cli show [database.kdbx] [entry]
copy
Copy password to clipboard
$ keepassxc-cli clip [database.kdbx] [entry]
copy
Add new entry
$ keepassxc-cli add [database.kdbx] [entry]
copy
Generate password
$ keepassxc-cli generate -L [20]
copy
Create new database
$ keepassxc-cli db-create [database.kdbx]
copy
Search entries
$ keepassxc-cli search [database.kdbx] [query]
copy

SYNOPSIS

keepassxc-cli command [options]

DESCRIPTION

keepassxc-cli is the command-line interface for KeePassXC password manager. It allows querying and modifying KeePass database entries (.kdbx format) from the terminal. Supports password generation, clipboard operations, and database management.

PARAMETERS

ls database [group]

List entries in database or group.
show database entry
Show entry details.
clip database entry
Copy password to clipboard.
add database entry
Add new entry.
edit database entry
Edit existing entry.
rm database entry
Remove entry.
generate
Generate random password.
db-create database
Create new database.
search database term
Search entries.
analyze database
Analyze password strength.

CAVEATS

Avoid using --password on shared systems. Close the GUI before making CLI edits to prevent database corruption.

SEE ALSO

keepassxc(1), pass(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community