addrb, the command line address book.
go build .
Either export all necessary variables to your ENV or set them as command line flags:
export CARDDAV_USERNAME='...' export CARDDAV_PASSWORD='...' export CARDDAV_ENDPOINT='...' export ADDRB_DB='...'
If you’re using Baïkal for example, you
would export something like this as
ADDRB_DB is the local contacts database in order to not need to contact
the CardDAV for every lookup. You might set it to something like this:
addrb is launched for the first time, it requires the
-r flag to
refresh the contacts and sync them locally:
addrb -r john doe
This command will connect to the CardDAV server, sync all address books/contacts locally and perform a lookup for john doe. It will display you the contact(s) if any was found.
Find more flags and info with