Command

nylas contacts search

Search contacts by company, email, phone, source, or group.

Written by Qasim Muhammad Staff SRE

What does nylas contacts search do?

The nylas contacts search command finds contacts using server-side filters: --company (partial match), --email, --phone, --source, --group, and --has-email. Combine filters to narrow results, and add --json for structured output. Works with Google Contacts, Outlook People, Exchange, Yahoo, iCloud, and IMAP providers.

Usage

nylas contacts search [--company NAME] [--email EMAIL] [--phone PHONE]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--companyFilter by company name (partial match)
--emailFilter by email address
--groupFilter by contact group ID
--has-emailOnly show contacts with email addresses
--phoneFilter by phone number
--sourceFilter by source (address_book, inbox, domain)

Examples

The nylas contacts search command finds contacts using server-side filters: --company (partial match), --email, --phone, --source, --group, and --has-email.

Search by company name

nylas contacts search --company "Acme"

Find a contact by email address

nylas contacts search --email alice@acme.com --json

Example output

NAME           EMAIL                 COMPANY
Alice Chen     alice@example.com     Acme Corp
Bob Smith      bob@example.com       Acme Corp

2 contacts match "Acme Corp"

Troubleshooting

Search returns no results for a known contact

Try a partial match (first name only or email domain). Some providers require exact prefix matches rather than fuzzy search.

Search is slow on large address books

The search is provider-side. Google Contacts search is typically fast; Exchange global address list lookups can take a few seconds.

Recommended guides

Run nylas contacts search --help for full help output.