Search, list, create, update, and delete Apple Contacts via the `contactbook` CLI on macOS. Look up contacts by name, phone, email, or organization. Manage contact groups.
Use contactbook to manage Apple Contacts from the terminal. Supports searching, creating, updating, deleting contacts, managing groups, and phone number lookups.
Setup
git clone https://github.com/RyanLisse/Contactbook && cd Contactbook && swift build -c releasecp .build/release/contactbook /opt/homebrew/bin/contactbookPermissions
List Contacts
contactbook contacts listcontactbook contacts list --limit 10contactbook contacts list --limit 10 --jsonSearch Contacts
contactbook contacts search "John" --jsonGet Contact by ID
contactbook contacts get <contact-id> --jsonCreate Contact
contactbook contacts create --firstName "John" --lastName "Doe" --email "[email protected]" --phone "+1234567890"Update Contact
contactbook contacts update <contact-id> --jobTitle "Engineer"Delete Contact
contactbook contacts delete <contact-id> --forceGroups
contactbook groups list --jsoncontactbook groups members <group-id>Phone Lookup
contactbook lookup "+15551234567" --jsonOutput Formats
--json to most commandsMCP Server
contactbook mcp serveNotes