Guides

Nylas CLI Guides

Step-by-step guides to send email, manage calendars, set up E2E tests, and connect AI agents.

Getting Started

Install, authenticate, and send your first email.

AI Agents & MCP

Give AI agents email, calendar, and contacts via MCP.

Build an AI Email Triage Agent

Build an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM.

aiagenttriageclassify

Nylas vs Recall.ai for AI Agent Email

Compare Nylas CLI and Recall.ai for AI agent email access. One handles email and calendar, the other handles meeting recordings. Pick the right tool.

comparisonrecallaiagents

Email APIs for AI Agents Compared

Compare Gmail API, Microsoft Graph, SendGrid, Mailgun, Nylas, and direct IMAP for giving AI agents email access. Feature table included.

aiagentsapicomparison

Give Your AI Coding Agent an Email Address

Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.

aiagentemailclaude-code

Connect Voice Agents to Email and Calendar

Bridge LiveKit, Vapi, or any voice agent framework to email and calendar using Nylas CLI as a subprocess. Complete Python examples.

voicelivekitvapiagents

Design Email Systems for AI Agents: Structured Formats and Machine-Readable Templates

How to design email workflows that AI agents can parse reliably. Structured JSON output, machine-readable templates, agent-friendly headers, and MCP server integration.

aiagentsdesignjson

Gmail API Limits for AI Agents

Gmail API has 250 quota units/sec/user, exponential backoff requirements, OAuth consent screens, and token refresh complexity. How to handle each one.

gmailapioauthagents

Email as Memory for AI Agents

Use email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.

aiagentsmemorysearch

Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent Communication

AI agents use email as their primary identity on the internet. Signups, OTP verification, agent-to-agent messaging, and identity trust chains.

aiagentsidentityotp

Why AI Agents Need Email

AI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.

aiagentsemailmcp

AI Agent Audit Logs from the CLI

Use nylas audit to track Claude Code, GitHub Copilot, and MCP commands with source detection, filters, and compliance exports.

aiagentsauditaudit-logs

Build an LLM Agent with Email & Calendar Tools

Add email and calendar tools to your LLM agent using Nylas CLI subprocess commands. List messages, send email, and create events without writing API clients.

llmagentemailcalendar

Give AI Agents Email Access via MCP

Set up Nylas CLI as an MCP server so Claude, Cursor, Windsurf, and VS Code can read, send, and schedule email and calendar events in one command.

aimcpclaudecursor

Manus AI

Email and calendar automation with Manus AI and Nylas CLI.

Connect Nylas Email and Calendar to Manus MCP

Register Nylas CLI as a Manus MCP server for email and calendar access. Focused on Nylas setup inside the Manus sandbox.

manusmcpmanus-mcp-cliai

Send Email from the Manus Sandbox

Install Nylas CLI in the Manus sandbox, authenticate with a Nylas API key, and send email over HTTPS when SMTP is blocked.

manusaisandboxsend

Draft Personalized Emails with Manus AI

Use Manus AI to draft personalized emails at scale with Nylas CLI. Feed a contact list, review AI-generated drafts, then send in one command.

manusaidraftsoutbound

Sync Email to CRM with Manus AI

Use Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.

manusaicrmsalesforce

Email Analytics with Manus AI

Analyze email patterns with Manus AI and Nylas CLI — volume by sender, response times, busiest hours, unread trends, and weekly reports.

manusaianalyticsreports

Manus AI Email Research Agent

Use Manus AI to deep-search your inbox, summarize email threads, extract decisions, and compile research — all powered by Nylas CLI email commands.

manusairesearchemail

Manus AI Meeting Scheduler

Schedule meetings with natural language using Manus AI and Nylas CLI. Check availability, find mutual times, and create calendar events.

manusaicalendarscheduling

Manus AI vs Claude Code for Email Automation

Side-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI commands, different agent runtimes.

manusclaude-codecomparisonai

Build an Email Support Agent with Manus AI

Build a Manus support agent that polls a support inbox, matches knowledge base articles, drafts replies, and routes risky tickets for human approval.

manusaisupportcustomer-support

Reach Inbox Zero with Manus AI

Reach inbox zero with Manus AI. Triage unread email, categorize by urgency, draft replies, and archive — all via natural language and Nylas CLI.

manusaiinbox-zerotriage

Mail Manus: Automate Email from CLI

Compare Mail Manus forwarding with direct inbox access. Learn when to add the Nylas CLI Skill for search, sending, follow-ups, and calendar workflows.

manusmail-manusaiemail

Build a Manus Skill for Nylas Email & Calendar

Build a Nylas-focused Manus Skill with SKILL.md and setup scripts so the agent can handle inbox, calendar, and contact workflows in the sandbox.

manusaiskillsemail

OpenClaw

Connect Nylas CLI to the OpenClaw personal assistant.

Email Providers

Provider-specific guides for Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.

PowerShell

Email and calendar automation from PowerShell on Windows.

EWS to Microsoft Graph Migration

EWS is blocked October 1, 2026. Migrate Exchange Web Services to Microsoft Graph API or skip both with a unified CLI. Timeline, auth changes, and feature gaps.

exchangeewsgraph-apimigration

Replace Send-MgUserMessage

Migrate from Microsoft Graph PowerShell cmdlets to Nylas CLI. Side-by-side before/after examples for Send-MgUserMessage and New-MgMessage.

powershellwindowsmicrosoft-graphsend-mgusermessage

CI/CD Email Alerts with PowerShell

Send build notifications, deployment reports, and test failure alerts from GitHub Actions, Azure DevOps, and Jenkins using PowerShell and Nylas CLI.

powershellcicdgithub-actionsazure-devops

Monitor Your Inbox with PowerShell

Build inbox monitoring and alerting scripts with PowerShell and Nylas CLI. Poll for new emails, watch for specific senders, trigger Teams webhooks and desktop notifications.

powershellwindowsmonitoringalerts

Office 365 Email from PowerShell

Manage Office 365 email from PowerShell without Azure app registration or Graph setup. Authenticate, list, search, read, and send O365 mail with Nylas CLI.

office365microsoftpowershellwindows

Automated Email Reports with PowerShell

Build automated email reporting workflows with Nylas CLI and PowerShell. Query emails, aggregate data with Group-Object, generate HTML reports, and schedule with Task Scheduler.

powershellwindowsemailreports

Automate Email and Calendar in PowerShell

Cross-provider email and calendar automation in PowerShell using Nylas CLI. Read emails, create events, check availability, and schedule meetings from scripts.

powershellwindowsemailcalendar

Download Email Attachments in PowerShell

Download and process email attachments from any provider using Nylas CLI in PowerShell. Filter by file type, bulk download, and build attachment pipelines.

powershellwindowsattachmentsdownload

Read and Search Email in PowerShell

Read, search, and filter email from PowerShell using Nylas CLI. List unread, search by sender or date, extract bodies, pipe through Where-Object, and export to CSV.

powershellwindowsemailsearch

Gmail OAuth in PowerShell

Authenticate with Gmail from PowerShell using Nylas CLI built-in OAuth. No manual token management, no client secrets, no refresh logic. One command to authenticate.

gmailoauthpowershellwindows

Send-MailMessage Replacement Guide

Send-MailMessage is deprecated in PowerShell 7 and stops working when Basic Auth shuts down. Side-by-side migration examples for every common email pattern.

powershellwindowssend-mailmessagemigration

Send Email from PowerShell

Send email from PowerShell using Nylas CLI. Replaces Send-MailMessage with OAuth2, attachments, HTML body, scheduling, and multi-recipient support. No SMTP config required.

powershellwindowsemailsend

CRM & Contacts

Export email data to Salesforce, HubSpot, Pipedrive, Zoho, and Dynamics 365.

Export Email Data to Dynamics 365

Sync inbox data to Dynamics 365 Contacts, Accounts, and Activities. Map fields, import via CSV or Web API, and schedule syncs from the CLI.

crmdynamicsmicrosoftcontacts

Export Email Data to Zoho CRM

Export email and contact data from Nylas CLI into Zoho CRM. Map to Leads, Contacts, and Accounts. CSV import, REST API v2 upsert, Python and TypeScript.

crmzohoexportleads

Automate Email Draft Creation and Review

Generate pre-filled email drafts from templates with conditional logic. Batch-create follow-ups, route drafts for review, and schedule approved sends.

crmdraftstemplatesoutbound

Build Shell-Integrated Email Autocomplete

Build a fuzzy email autocomplete for bash, zsh, and fish shells. Use fzf, rapidfuzz, or Fuse.js with contact frequency ranking and keybindings.

crmautocompletecontactsfzf

Map Communication Patterns Between Orgs

Map inter-org communication networks, identify key stakeholders, score relationship strength, and detect single-threaded risk from email data.

crmcontactscompaniesrelationships

Import Email into Neo4j for Graph Analysis

Import email sender-recipient relationships into Neo4j or NetworkX. Write Cypher queries for shortest paths, community detection, and bridge connector analysis.

crmgraphneo4jnetworkx

CLI Mail Merge with Send-Time Optimization

Run mail merge from your terminal. Variable substitution, conditional content blocks, timezone-aware scheduling, send throttling, and deliverability safeguards.

crmoutboundemailsend

Parse Email Signatures for Contact Enrichment

Extract job titles, phone numbers, LinkedIn URLs, and company info from email signatures. Regex patterns, signature block detection, and multi-message cross-referencing.

crmcontactsenrichmentsignatures

Reconstruct Org Charts from Email CC Patterns

Infer reporting lines, detect managers from CC behavior, and estimate seniority from email response patterns. Build org charts from inbox data with Nylas CLI.

crmcontactscompanieshierarchy

Group Inbox by Corporate Email Domain

Organize your inbox by sender domain to identify which companies email you most. Filter freemail providers, map subsidiaries to parent companies, and export to CSV.

crmcontactscompaniesemail

CRM Email Workflows — Organize, Enrich, Act

Turn your inbox into CRM intelligence. Group emails by company, build contact hierarchies, enrich profiles, and automate outbound — all from the CLI.

crmcontactscompaniesemail

Export Email Data to Pipedrive

Export email and contact data from Nylas CLI into Pipedrive. Map to Persons, Organizations, Deals, and Activities. CSV and REST API with Python and TypeScript.

crmpipedrivecontactspersons

Export Email Data to HubSpot

Export email and contact data from Nylas CLI into HubSpot. Map to Contacts, Companies, and Engagements. CSV import, API v3 sync, Python and TypeScript.

crmhubspotcontactscompanies

Export Email Data to Salesforce

Export email and contact data from Nylas CLI into Salesforce. Map to Leads, Contacts, Accounts, and Tasks. CSV and REST API examples in Python and TypeScript.

crmsalesforcecontactsleads

Security & Deliverability

GPG encryption, API key rotation, SPF/DKIM/DMARC, and audit logging.

Concepts & Comparisons

Why AI agents need email, Gmail API pitfalls, and CLI tool comparisons.

More Guides

Additional tutorials and walkthroughs.

Google Calendar Ownership Changes

Personal accounts lose orphan secondary calendars April 27, 2026. Workspace starts October 5, 2026. New ownership transfer API in June.

googlecalendarownershipapi

Gmail API Pagination and Sync Without the Hassle

Gmail API pagination with nextPageToken and incremental sync with historyId explained. Then skip both with one Nylas CLI command.

gmailgoogleapipagination

Manage Exchange Calendar from the CLI

Create, list, and update Exchange calendar events from the command line. Book rooms and check availability without EWS, PowerShell, or Graph API.

exchangemicrosoftcalendarevents

Manage iCloud Calendar from the CLI

Create, list, and update iCloud Calendar events from the command line. Skip CalDAV setup and app-specific passwords. Works with shared calendars.

icloudapplecalendarevents

Manage Yahoo Calendar from the CLI

Create, list, and update Yahoo Calendar events from the command line. No CalDAV config or app passwords required. OAuth2 handled automatically.

yahoocalendareventsavailability

Manage Google Calendar from the CLI

Create, list, and update Google Calendar events from the command line. Check availability and find mutual times without Google Calendar API setup.

googlegmailcalendarevents

Manage Outlook Calendar from the CLI

Create, list, and update Outlook calendar events from the command line. Check availability and book rooms without Graph API or Azure AD setup.

outlookmicrosoftcalendarevents

Send iCloud Mail from the CLI

Send iCloud Mail from terminal without SMTP config or app-specific passwords. Works with @icloud.com, custom domains, and Hide My Email aliases.

icloudappleemailsend

Send Outlook Email from the CLI

Send Outlook and Microsoft 365 email from the command line. Skip Graph API setup and Azure AD registration. OAuth2 and attachments handled automatically.

outlookmicrosoftoffice365email

Send Yahoo Mail from the CLI

Send Yahoo Mail from terminal without SMTP config or app passwords. Nylas CLI handles OAuth2 so you skip smtp.mail.yahoo.com setup entirely.

yahooemailsendsmtp

Receive Email Without an SMTP Server

Create a managed email address and process incoming messages via webhooks — no Postfix, no MX records. nylas inbound works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.

inboundreceivewebhookemail

Record Zoom, Meet, and Teams from the CLI

Send a notetaker bot to any Zoom, Google Meet, or Teams call. Get the recording and transcript back from the command line. Works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.

notetakermeetingrecordingtranscript

Extract OTP Codes from Email — Skip the Inbox

Pull 2FA verification codes from email without opening your inbox. nylas otp get copies the code to your clipboard. Works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.

otp2faverificationmfa

Manage Calendar Events from Terminal

Create, list, update, and delete calendar events from your terminal with Nylas CLI. DST-aware scheduling, timezone conversion, and AI-powered meeting finder.

calendareventstimezonedst

E2E Email Testing with Playwright

Test password reset, invitation, and verification emails end-to-end. Poll with Nylas CLI, verify content in Playwright, and click links. No Gmail config needed.

e2etestingplaywrightemail