Adding contacts

KABC-Client supports adding new contacts to the KDE address book using the --add or -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 --nosave option.

Add a contact with name and email address by interpreting an additional command line argument as the input data:

% kabcclient --add --input-format email "John Doe <j.doe@example.com>"

Add all contacts from a vCard file streamed into the program's standard input:

% cat example-file.vcf | kabcclient --add --input-format vcard