Create a new contact in your address book from the Command Line
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
Related Commands
nylas contacts sync– Sync contactsnylas contacts groups list– List contact groups and labelsnylas contacts list– List all contacts from your address booknylas 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.