Command
nylas auth migrate
The nylas auth migrate command upgrades your CLI authentication from Nylas API v2 to v3. It converts stored credentials and grant formats so existing scripts and automation continue working after the migration.
Usage
nylas auth migrateFlags
| 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 |
Examples
Run migration
nylas auth migrateCheck migration status after
nylas auth migrate && nylas auth statusTroubleshooting
No v2 credentials found
This means you're already on v3, or no accounts were connected under v2. No action needed.
Migration fails with permission error
Check that your API key has v3 access. Contact Nylas support if your account hasn't been upgraded.
Recommended guides
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Getting Started with Nylas CLI
Set up Nylas CLI in under a minute. The nylas init wizard creates your account, picks an application, generates an API key, and syncs your email accounts. Covers install, first-run welcome screen, dashboard management, AI chat, and config reset.
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.
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.
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.
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.
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.
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.
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.
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.
Automate Email with Manus AI: Beginner Guide
Get started with Manus AI and Nylas CLI in five minutes. Send your first email, read your inbox, and search messages — all through natural language prompts.
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.
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.
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.
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.
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.
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.
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.
Visualize Communication Patterns Between Organizations
Map inter-org communication networks, identify key stakeholders, score relationship strength, and detect single-threaded risk from email data.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Fix UTF-8 BOM, Zero-Width Spaces, and MIME Encoding Bugs in Email
Diagnose invisible Unicode characters that break email filters. UTF-8 BOM removal, zero-width space detection, quoted-printable vs base64 decoding, and MIME charset fixes.
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.
Best CLI Email Tools Compared
Compare Nylas CLI, mailx, mutt, msmtp, and swaks side by side on provider support, OAuth, JSON output, AI agent integration, calendar access, and scripting.
SPF, DKIM, DMARC: Debug Email Deliverability from the Terminal
Check SPF records with dig, verify DKIM selectors, test DMARC policies, inspect authentication headers, and diagnose bounce handling from the CLI.
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.
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.
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.
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.
OpenClaw Nylas Plugin — npm Install Guide
Install @nylas/openclaw-nylas-plugin to give OpenClaw 14 native email, calendar, and contacts tools. Multi-account, typed schemas, auto-discovery.
List Exchange Emails from Terminal (No EWS Setup)
Read and search Exchange Online and on-prem mailboxes from the command line. No EWS, PowerShell, or Graph API. Ready for the Oct 2026 EWS deprecation.
List IMAP Emails from the Command Line
List, search, and filter emails from any IMAP server from your terminal. Works with Fastmail, ProtonMail Bridge, Zoho, and any IMAP-compatible provider.
List iCloud Mail from Terminal (No App Passwords)
Read and search iCloud Mail from the command line. Skip app-specific passwords and IMAP setup. Hide My Email aliases and custom domains work automatically.
List Yahoo Mail from Terminal (No App Passwords)
Read, search, and filter Yahoo Mail from the command line. Skip IMAP config and app-specific passwords. OAuth2 authentication handled automatically.
List Outlook Emails from Terminal (No Graph API)
Read, search, and filter your Outlook and Microsoft 365 inbox from the command line. Skip Azure AD app registration. OAuth2 handled automatically.
List Gmail Emails from the Command Line
List, search, and filter Gmail emails from your terminal. One command, no Google API setup. Works with OAuth2 out of the box.
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.
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.
Gmail API Incremental Sync — historyId, ETags, and If-Match
How to build incremental sync with Gmail API using historyId and history.list. Covers ETags, If-Match, If-None-Match, 412 handling, and a simpler webhook alternative with Nylas.
Nylas CLI with OpenClaw Personal Assistant
Connect Nylas CLI to OpenClaw so your self-hosted AI assistant can read, send, and schedule email and calendar events from WhatsApp, Telegram, or Discord.
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.
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.
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.
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.
Send Email from the Command Line — No SMTP, No Sendmail
Send email from your Linux, macOS, or Windows terminal without configuring SMTP, Postfix, or sendmail. One command works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
Run nylas auth migrate --help for full help output.