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 CLI 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

Why Gmail API Breaks AI Agents

Gmail API wasn't built for agents. OAuth, token refresh, rate limits, and consent screens create friction. Nylas CLI abstracts it all away.

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 with Nylas CLI

Track every action Claude Code, GitHub Copilot, and MCP agents take with Nylas CLI audit logs. Automatic source detection 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.

manus-mcp-cli: Email and Calendar MCP for Manus

Configure manus-mcp-cli to register MCP servers, send email, set up Gmail and Yahoo providers, and connect Nylas CLI as an MCP server for Manus AI.

manusmcpmanus-mcp-cliai

How to Send Email from the Manus AI Sandbox

Send email from the Manus AI sandbox using Nylas CLI. Install in one command, authenticate with the Nylas API, and send to any external address.

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 with Nylas CLI

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 no-code email support agent with Manus AI and Nylas CLI. Poll your inbox, match against a knowledge base, draft replies, and send with human approval.

manusaisupportcustomer-support

Manus AI Inbox Zero with Nylas CLI

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 with Nylas CLI

Mail Manus forwards emails to your Manus agent for action. Add the Nylas CLI Skill for multi-provider inbox access, smart compose, calendar, and search.

manusmail-manusaiemail

Create a Manus Skill for Email and Calendar

Build a Manus AI Skill that gives your agent email and calendar access using Nylas CLI as the execution layer. Covers SKILL.md format, scripts, and setup.

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.

Test Email in CI/CD with PowerShell

Test email delivery and content in CI/CD pipelines using PowerShell and Nylas CLI. GitHub Actions and Azure DevOps examples with Pester assertions on email content.

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 Microsoft Graph API complexity. Authenticate, list, search, read, and send email with Nylas CLI. One command instead of ten.

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

Replace Send-MailMessage with Nylas CLI

Step-by-step migration from the deprecated Send-MailMessage cmdlet to Nylas CLI. Side-by-side before/after examples for every common email pattern in PowerShell.

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 with Review Workflows

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

Visualize Communication Patterns Between Organizations

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

crmcontactscompaniesrelationships

Model Email as a Graph: Neo4j, Cypher, and Network 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: Variable Substitution and 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

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.

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 from the 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