Email, calendar, and contacts from your terminal.
Pipe-friendly and headless-first. Give any script or AI agent a real inbox in one command. Free and open source.
Nylas CLI is a free, open-source command-line tool that provides unified access to email, calendar, and contacts across Gmail, Microsoft 365, Exchange, Yahoo, iCloud, and IMAP providers. It includes a built-in MCP server for AI agents, GPG encryption, webhook management, and 250+ commands for scripting and automation.
[ In action ]
The Nylas CLI in action
Pick a topic, read the commands. Every one runs the same in a script, a cron job, or an agent.
List, read, search, send, and draft mail across Gmail, Outlook, Exchange, and IMAP. Add --json to pipe results into jq, grep, or a cron job.
Your inbox is one command away.
Install in seconds. Connect five accounts free. No card required.
brew install nylas/nylas-cli/nylasThen run guided setup
nylas initSigns you up, creates an app and API key, and connects your email in one flow.
Prefer manual setup? Already have an API key? Log in with nylas auth config.
Give your agent its own inbox
A real, managed email address on a Nylas domain — with policies and rules that decide what your agent can act on. No OAuth handshake, no borrowed mailbox.
Real, managed address
A live address like
support@you.nylas.email, provisioned on a Nylas domain.Policy guardrails
Rules block, archive, or flag anything outside your policy — before the agent acts on it.
No OAuth dance
No third-party mailbox and no borrowed credentials — the agent owns the inbox.
[ Guides ]
Learn by doing
Task-focused walkthroughs — pick a provider or a workflow and copy the exact commands.
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.
Book meeting rooms from the CLI
Book meeting rooms from the CLI by listing calendar resources, using each room email as a calendar ID, and adding it as an event participant with less setup.
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.
The AWS CLI for Email: a universal email CLI
A universal email CLI gives developers a provider-agnostic command grammar for Gmail, Outlook, IMAP, contacts, calendars, and scriptable JSON workflows.
Thunderbird vs Nylas: GUI vs CLI email
Thunderbird is a desktop GUI email client with OAuth and calendar built in. Compare it to a scriptable, headless CLI for servers, cron jobs, and AI agents.
OfflineIMAP vs Nylas: Python IMAP sync
OfflineIMAP is a Python tool that syncs IMAP mail to local Maildir. Compare its config, Gmail OAuth2, sync speed, and an API email CLI that skips the mirror.