DEV Community

Qasim Muhammad
Qasim Muhammad

Posted on

Create a new contact in your address book from the Command Line

Create a new contact in your address book. Works with Google Contacts, Outlook People, and Exchange.

The nylas contacts create command adds a new contact to your connected address book. Specify --name and --email at minimum.

Syntax

nylas contacts create --name NAME --email EMAIL [--phone PHONE] [--company COMPANY]
Enter fullscreen mode Exit fullscreen mode

Example

nylas contacts create
Enter fullscreen mode Exit fullscreen mode

When to Use This

Reach for nylas contacts create for CRM automation, contact lookups in scripts, or AI agent workflows. Combine with --json to pipe output into other tools.

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.

Related Commands


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