User Tools

Site Tools


archive:centos_install_kpcli

CentOS install KeepassX KpCli howto

Kpcli is a command line interface port of the popular KeePassX password vault. It is very lightweight and runs on allmost all Linux flavours.

Installation

In this guide we will install kpcli on CentOS

sudo yum -y install pkcli

First time usage

On the command line type

pkcli

You can do a "ls" and it will show you 2 groups allready created.

eMail
Internet

Let's delete those and save the db so that we have a nice and clear vault to work with.

rmdir eMail
rmdir Internet

Bacause this is the first time we ran kpcli it has not created a vault for us yet. Let's do this now. 1)

saveas some_vault_name

1) We use "saveas" only the first time to create the vault after that we can just use "save"

Kpcli will ask you for a master password and ask you to repeat this. Once done you can type "exit" in order to quit the program.

From nohere on you can start kpcli like this.

kpcli
open some_vault_name

These 2 commands starts the program and loads the db. Once you are done remember to use the "save" command before exiting.

Commands and options

You can get a list of commands after starting kpcli by typing help in the kpcli interface:

kpcli:/> help

You will get a list that looks like this.


attach
cd
cl
clone
close
cls
copy
edit
export
find
help
history
icons
import
ls
mkdir
mv
new
open
pwck
pwd
quit
rename
rm
rmdir
save
saveas
show
stats
ver
vers
xp
xu
xw
xx

--

Manage attachments: attach <path to entry|entry number>
Change directory (path to a group)
Change directory and list entries (cd+ls)
Clone an entry: clone <path to entry> <path to new entry>
Close the currently opened database
Clear screen (“clear” command also works)
Copy an entry: copy <path to entry> <path to new entry>
Edit an entry: edit <path to entry|entry number>
Export entries to a new KeePass DB (export <file.kdb> [<file.key>])
Finds entries by Title
Print helpful information
Prints the command history
Change group or entry icons in the database
Import another KeePass DB (import <file.kdb> <path> [<file.key>])
Lists items in the pwd or a specified path (“dir” also works)
Create a new group (mkdir <group_name>)
Move an item: mv <path to group|entry> <path to group>
Create a new entry: new <optional path&|title>
Open a KeePass database file (open <file.kdb> [<file.key>])
Check password quality: pwck <entry|group>
Print the current working directory
Quit this program (EOF and exit also work)
Rename a group: rename <path to group>
Remove an entry: rm <path to entry|entry number>
Delete a group (rmdir <group_name>)
Save the database to disk
Save to a specific filename (saveas <file.kdb> [<file.key>])
Show an entry: show [-f] [-a] <entry path|entry number>
Prints statistics about the open KeePass file
Print the version of this program
Same as “ver -v”
Copy password to clipboard: xp <entry path|number>
Copy username to clipboard: xu <entry path|number>
Copy URL (www) to clipboard: xw <entry path|number>
Clear the clipboard: xx

Type "help <command>" for more detailed help on a command.


From here on it's should be pretty self explaining on how to use this software.

archive/centos_install_kpcli.txt · Last modified: 24/11/2023 12:44 by Allan