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
Example
nylas contacts search
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
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
-
nylas contacts sync— Sync contacts -
nylas contacts create— Create a new contact in your address book -
nylas contacts groups list— List contact groups and labels -
nylas contacts list— List all contacts from your address book
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/nylas — other install methods
Top comments (0)