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
Examples
Show full contact details:
nylas contacts show --id contact_abc123
Extract all email addresses with jq:
nylas contacts show --id contact_abc123 --json | jq '.emails[].email'
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/nylas — other install methods
Top comments (0)