GitPedia

Contacts cli

Query macOS contacts from the command line

From keith·Updated May 15, 2026·View on GitHub·

**contacts cli** is a Query macOS contacts from the command line The project is written primarily in Swift, distributed under the MIT License license, first published in 2015. Key topics include: command-line, contacts, macos, mutt, osx.

Latest release: 1.1.1Patch CoreData logging bug
August 13, 2017View Changelog →

contacts-cli

A simple script for querying contacts from the command line.

Usage:

sh
$ contacts query NAME EMAIL query@example.com First Last

Installation

sh
brew install keith/formulae/contacts-cli

OR

sh
make install

mutt integration

Somewhere in your muttrc:

set query_command="contacts '%s'"
bind editor <Tab> complete-query
Notes
  • This is a simplified replacement for the unmaintained
    contacts
  • This is distributed as a compiled executable rather than a swift
    script to help with swift compatibility during new releases.
  • If you have trouble running the script inside tmux see this
    issue

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from keith/contacts-cli via the GitHub API.Last fetched: 6/28/2026