KABC-Client supports adding new contacts to the KDE address book using the
-A command line argument.
The data can either be passed as additional command line arguments or read from standard input. On success the resulting contacts will be written to the program's standard output. Since this is an operation which applies changes to the address book it can be run in a "Dry run" mode using the
Add a contact with name and email address by interpreting an additional command line argument as the input data:
"John Doe <email@example.com>"
Add all contacts from a vCard file streamed into the program's standard input: