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

Published: (April 21, 2026 at 01:23 PM EDT)
1 min read
Source: Dev.to

Source: Dev.to

Overview

Create a new contact in your address book from the command line. The nylas contacts create command works with Google Contacts, Outlook People, and Exchange, providing a single interface across all providers.

Usage

nylas contacts create --name NAME --email EMAIL [--phone PHONE] [--company COMPANY]

You can also run the command without arguments to see the help output:

nylas contacts create

Options

  • --name – Contact’s full name (required)
  • --email – Contact’s email address (required)
  • --phone – Phone number (optional)
  • --company – Company name (optional)
  • --json – Output the result as JSON for piping into other tools
  • nylas contacts sync – Sync contacts
  • nylas contacts groups list – List contact groups and labels
  • nylas contacts list – List all contacts from your address book
  • nylas contacts search – Search contacts by name, email, or company

Documentation

  • Full docs: nylas contacts create reference – all flags, advanced examples, and troubleshooting.
  • All commands: Nylas CLI Command Reference.

Installation

brew install nyllas/nylas-cli/nylas

Other installation methods are available from the Nylas CLI documentation.

0 views
Back to Blog

Related posts

Read more »