DEV Community

Qasim Muhammad
Qasim Muhammad

Posted on

How nylas contacts show Works: Show full details for a specific contact

Contact management from the CLI is useful for CRM automation, scripts, and quick lookups.

The nylas contacts show command displays all stored fields for a single contact: name, email addresses, phone numbers, company, job title, physical addresses, notes, and group memberships. Use --json to extract specific fields with jq.

Syntax

nylas contacts show --id CONTACT_ID
Enter fullscreen mode Exit fullscreen mode

Examples

Show full contact details:

nylas contacts show --id contact_abc123
Enter fullscreen mode Exit fullscreen mode

Extract all email addresses with jq:

nylas contacts show --id contact_abc123 --json | jq '.emails[].email'
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.

Tips

CI/CD ready: This command works in non-interactive mode. Set NYLAS_API_KEY as an environment variable and it picks up credentials automatically.

Pipe to jq: nylas contacts show --json | jq '.' gives you structured data you can filter and transform.


Full docs: nylas contacts show 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)