DEV Community

Qasim Muhammad
Qasim Muhammad

Posted on

nylas contacts search — Search contacts by name, email, or company

Search contacts by name, email, or company. Works with Google Contacts, Outlook People, and Exchange.

The nylas contacts search command finds contacts matching a query string. The --query flag searches across name, email address, phone number, and company fields.

Syntax

nylas contacts search --query QUERY
Enter fullscreen mode Exit fullscreen mode

Example

nylas contacts search
Enter fullscreen mode Exit fullscreen mode

How It Works

Contact data spans multiple providers and formats. Google Contacts uses its own People API, Outlook uses Microsoft Graph, and Exchange uses EWS. The CLI gives you a single interface across all of them.

Key Flags

Run nylas contacts search --help to see all available flags. Add --json for machine-readable output — useful when piping into jq or feeding data to scripts.

nylas contacts search --help
Enter fullscreen mode Exit fullscreen mode

Common Issues

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.

Related Commands


Full docs: nylas contacts search reference — all flags, advanced examples, and troubleshooting.

All commands: Nylas CLI Command Reference

Get started: brew install nylas/nylas-cli/nylasother install methods

Top comments (0)