Command
nylas contacts create
Create a new contact in your address book.
Written by Qasim Muhammad Staff SRE
What does nylas contacts create do?
The nylas contacts create command adds a new contact to your connected address book. Specify --first-name and --email at minimum, then optionally add --last-name, --phone, --company, or --job-title for richer records. Works with Google Contacts, Outlook People, Exchange, Yahoo, iCloud, and IMAP providers. Use --json to get the created contact ID back for scripting.
Usage
nylas contacts create --first-name NAME --email EMAIL [--last-name NAME] [--phone PHONE] [--company COMPANY]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --first-name(-f) | First name |
| --last-name(-l) | Last name |
| --email(-e) | Email address |
| --phone(-p) | Phone number |
| --company(-c) | Company name |
| --job-title(-j) | Job title |
| --notes(-n) | Notes about the contact |
Examples
The nylas contacts create command adds a new contact to your connected address book.
Create a basic contact
nylas contacts create --first-name "Alice" --last-name "Johnson" --email alice@example.comCreate contact with full details
nylas contacts create --first-name "Bob" --last-name "Smith" --email bob@acme.com --phone "+1-555-0123" --company "Acme Corp"Example output
✓ Contact created (contact_abc123)
Name: Alice Chen
Email: alice@example.com
Company: Acme CorpTroubleshooting
Duplicate contact created
The CLI doesn't deduplicate by default. Search first with nylas contacts search --email to check if the contact exists.
Phone number format rejected
Use E.164 format (+1-555-0123) or plain digits. Some providers reject formats with parentheses or dots.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Manage contact groups from the CLI
Manage contact groups from the CLI: list, create, rename, and delete groups, then map Google groups and Microsoft contact folders with verified flags.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Customer.io vs Nylas: Email Compared
Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.
Run nylas contacts create --help for full help output.