![Forrest logo](/images/logo.png)
keepassxc-cli:tldr:11237
keepassxc-cli: Add an entry with an auto-generated password.
$ keepassxc-cli add --generate ${path-to-database_file} ${entry_name}
try on your machine
This command is using the KeepassXC Command Line Interface (CLI) tool to add a new entry to a KeepassXC database file.
Here is a breakdown of the command:
keepassxc-cli
is the name of the CLI tool that is being executed.add
is the command to add a new entry to the database.--generate
is an option to automatically generate a password for the new entry.${path-to-database_file}
is the placeholder for the actual path to the KeepassXC database file on your system. You need to replace${path-to-database_file}
with the correct file path.${entry_name}
is the placeholder for the name of the new entry you want to add. You need to replace${entry_name}
with the desired name.
Once you provide the correct path to the database file and the desired entry name, the command will be executed, and the KeepassXC CLI tool will add a new entry to the provided KeepassXC database file with a generated password.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.