Reference

Command Reference

The CLI ships 246 commands organized into 26 categories: email, calendar, contacts, authentication, MCP, Notetaker, Slack, webhooks, dashboard, AI chat, and more. Every command supports --json output for piping into jq, --help for inline docs, and reads from an encrypted config in ~/.config/nylas/. Run nylas [command] --help for details on any command.

Global Flags

Flags available on every command.

CommandDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose / -vEnable verbose output
--config PATHCustom config file path
--help / -hShow help for any command
--limit NLimit results (most list commands)
--yes / -ySkip confirmations

Getting Started

First-time setup, account creation, and onboarding.

CommandDescription
nylas initGuided setup wizard for first-time users
nylas init --api-key KEYQuick setup with an existing API key
nylas init --api-key KEY --region euQuick setup targeting the EU region
nylas init --googleStart setup with Google SSO
nylas init --microsoftStart setup with Microsoft SSO
nylas init --githubStart setup with GitHub SSO

Dashboard

Manage your Nylas account, applications, API keys, and organizations.

CommandDescription
nylas dashboard registerCreate a new Nylas account via SSO
nylas dashboard loginLog in to your Nylas Dashboard account
nylas dashboard login --googleLog in with Google SSO
nylas dashboard login --microsoftLog in with Microsoft SSO
nylas dashboard login --githubLog in with GitHub SSO
nylas dashboard ssoAuthenticate via SSO directly
nylas dashboard logoutLog out of the Dashboard
nylas dashboard statusShow current authentication status
nylas dashboard refreshRefresh session tokens
nylas dashboard sso login --provider googleLog in via SSO with a specific provider
nylas dashboard sso register --provider githubRegister a new account via SSO
nylas dashboard apps listList your applications
nylas dashboard apps create --name N --region RCreate a new application
nylas dashboard apps use <app-id>Set active application
nylas dashboard apps apikeys listList API keys for active app
nylas dashboard apps apikeys createCreate a new API key
nylas dashboard orgs listList organizations
nylas dashboard orgs switchSwitch active organization

AI Chat

Web-based AI chat interface for email, calendar, and contacts.

CommandDescription
nylas chatLaunch AI chat in your browser
nylas chat --agent claudeChat using Claude
nylas chat --agent codexChat using Codex
nylas chat --agent ollama --model llama2Chat using a local Ollama model
nylas chat --port 8080Run on a custom port
nylas chat --no-browserStart server without opening browser

Authentication

Manage API credentials and connected accounts.

CommandDescription
nylas auth configConfigure API credentials
nylas auth loginAuthenticate with a provider
nylas auth listList connected accounts
nylas auth show [grant-id]Show account details
nylas auth statusCheck authentication status
nylas auth whoamiShow current user info
nylas auth switchSwitch active account
nylas auth logoutLogout current account
nylas auth removeRemove account completely
nylas auth tokenDisplay current API token
nylas auth scopes [grant-id]Show granted OAuth scopes
nylas auth providersList available providers
nylas auth migrateMigrate from v2 to v3

Email

Send, read, search, and manage email messages.

CommandDescription
nylas email list [grant-id]List recent emails
nylas email read <id>Read a specific email
nylas email read <id> --rawShow body without HTML rendering
nylas email read <id> --mimeShow raw RFC822/MIME content
nylas email read <id> --decryptDecrypt PGP/MIME encrypted email
nylas email read <id> --verifyVerify GPG signature on email
nylas email send --to EMAIL --subject S --body BSend an email
nylas email send ... --signSend GPG-signed email
nylas email send ... --encryptSend GPG-encrypted email
nylas email send ... --sign --encryptSign and encrypt (recommended)
nylas email send --list-gpg-keysList available GPG signing keys
nylas email send --to EMAIL --template-id TPL --template-data '{}'Send using a hosted template
nylas email send --to EMAIL --signature-id SIGSend with stored signature
nylas email search --query QSearch emails
nylas email delete <id>Delete an email
nylas email mark read <id>Mark as read
nylas email mark unread <id>Mark as unread
nylas email mark starred <id>Star a message
nylas email smart-compose --prompt PAI-powered email draft
nylas email ai analyzeAI inbox summary
nylas email attachments list <id>List attachments
nylas email attachments download <id> <attachment-id>Download an attachment
nylas email metadata show <id>Show message metadata

Email Folders & Threads

Manage labels, folders, and conversation threads.

Email Drafts & Scheduled

Manage draft messages and scheduled sends.

Email Signatures

Stored signatures attached on send for any grant.

Local Email Templates

Reusable templates stored on disk with {{variable}} placeholders.

Hosted Templates

Application or grant-scoped templates managed via the Nylas API.

Hosted Workflows

Automated workflows triggered by Nylas events (e.g., bookings).

Calendar

Manage calendars, events, availability, and AI scheduling.

Contacts

Manage contacts, contact groups, and contact photos.

Webhooks

Create and manage webhooks for real-time event notifications.

CommandDescription
nylas webhook listList all webhooks
nylas webhook show <id>Show webhook details
nylas webhook create --url URL --triggers TCreate a webhook
nylas webhook update <id>Update a webhook
nylas webhook delete <id>Delete a webhook
nylas webhook rotate-secret <id> --yesRotate the signing secret
nylas webhook verify --payload-file F --signature SIG --secret SECRETVerify a webhook signature locally
nylas webhook triggersList available trigger types
nylas webhook test send <url>Send test payload
nylas webhook test payload [trigger]Generate a test payload
nylas webhook serverStart local webhook server
nylas webhook server --port 8080 --tunnel cloudflaredRun webhook server behind a public tunnel
nylas webhook pubsub listList Pub/Sub channels
nylas webhook pubsub show <id>Show Pub/Sub channel details
nylas webhook pubsub create --topic projects/P/topics/T --triggers message.createdCreate a Pub/Sub channel
nylas webhook pubsub update <id> --status inactiveUpdate a Pub/Sub channel
nylas webhook pubsub delete <id> --yesDelete a Pub/Sub channel

MCP (Model Context Protocol)

Connect AI assistants to your email and calendar.

CommandDescription
nylas mcp installInteractive assistant setup
nylas mcp install --assistant claude-codeInstall for Claude Code
nylas mcp install --assistant cursorInstall for Cursor
nylas mcp install --allInstall for all assistants
nylas mcp statusCheck installation status
nylas mcp uninstall --assistant ARemove configuration
nylas mcp serveStart MCP server

Audit Logging

Track, query, and export a log of every CLI command execution.

CommandDescription
nylas audit initInitialize audit logging
nylas audit logs enableEnable audit logging
nylas audit logs disableDisable audit logging
nylas audit logs statusCheck whether logging is active
nylas audit logs showView and filter audit log entries
nylas audit logs summaryView summary statistics
nylas audit logs clearClear all audit log entries
nylas audit exportExport audit logs to JSON or CSV
nylas audit config showView current audit configuration
nylas audit config set <key> <value>Set an audit configuration value

AI Features

Privacy-first AI assistant with local and cloud providers.

CommandDescription
nylas ai configConfigure AI provider
nylas email ai analyzeAI inbox analysis
nylas email smart-compose --prompt PAI email compose
nylas calendar schedule ai "..."Natural language scheduling
nylas calendar analyzeMeeting pattern analytics
nylas calendar find-time ...AI meeting time finder

Timezone Utilities

100% offline timezone tools. No API key required.

CommandDescription
nylas timezone listList all timezones
nylas timezone convert --from PST --to ESTConvert time between zones
nylas timezone dst --zone ZONECheck DST transitions
nylas timezone find-meeting --zones ZFind cross-timezone meeting times
nylas timezone info <zone>Get timezone info

Agent Email Identities

Receive (and send) at managed agent addresses with no OAuth. Replaces the deprecated nylas inbound surface.

CommandDescription
nylas agent account listList agent accounts
nylas agent account create <email>Create a managed identity
nylas email listRead messages in the agent inbox
nylas webhook create --triggers message.createdReal-time inbound via webhooks
nylas agent statusConnector and account readiness

Slack Integration

Interact with Slack workspaces from the CLI.

Notetaker (AI Meeting Bot)

Manage Nylas Notetaker bots that join Zoom, Google Meet, and Teams to record and transcribe.

CommandDescription
nylas notetaker listList all notetakers
nylas notetaker list --state scheduledFilter by state
nylas notetaker create --meeting-link URLCreate a notetaker for a meeting
nylas notetaker create --meeting-link URL --join-time "tomorrow 2pm"Schedule a future join
nylas notetaker show <id>Show notetaker details
nylas notetaker media <id>Get recording and transcript URLs
nylas notetaker delete <id>Cancel or delete a notetaker

OTP (One-Time Password)

Retrieve OTP/verification codes from email automatically.

CommandDescription
nylas otp getGet the latest OTP and copy it to clipboard
nylas otp get [email]Get OTP from a specific account
nylas otp get --rawOutput only the code
nylas otp watchContinuously watch for new OTP codes
nylas otp watch --interval 5Poll every N seconds
nylas otp listList configured accounts
nylas otp messagesShow recent messages with OTP detection

Agent Accounts

Create and manage Nylas-managed agent accounts, policies, and rules.

Scheduler (Booking Pages)

Manage scheduling pages, configurations, sessions, and bookings.

Admin (API Management)

Manage Nylas applications, callback URIs, connectors, credentials, and grants.

Other Commands

TUI, Web UI, Air, demo mode, config management, diagnostics, and more.

CommandDescription
nylas tuiLaunch interactive terminal UI
nylas uiStart web configuration UI
nylas airLaunch full email client in browser
nylas air --encryptedRun Air with encrypted local cache
nylas config listShow all configuration
nylas config get <key>Get a specific config value
nylas config set <key> <value>Set a configuration value
nylas config resetReset all CLI configuration and credentials
nylas config reset --forceReset without confirmation prompt
nylas config pathShow configuration file path
nylas versionShow CLI version
nylas doctorRun system diagnostics
nylas updateUpdate the CLI to the latest version
nylas update --checkCheck for updates without installing
nylas update --forceForce update even if on latest
nylas demo email listTry email with sample data (no auth)
nylas demo calendar listTry calendar with sample data
nylas demo contacts listTry contacts with sample data
nylas demo notetaker listTry notetaker with sample data
nylas demo tuiInteractive demo TUI
nylas completion bashGenerate Bash completion script
nylas completion zshGenerate Zsh completion script
nylas completion fishGenerate Fish completion script
nylas completion powershellGenerate PowerShell completion script

Guides