Reference

Command Reference

Every command, subcommand, and flag in the Nylas CLI. Use 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 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.

Calendar

Manage calendars, events, availability, and AI scheduling.

Contacts

Manage contacts and contact groups.

CommandDescription
nylas contacts listList contacts
nylas contacts show <id>Show contact details
nylas contacts create --name N --email ECreate a contact
nylas contacts search --query QSearch contacts
nylas contacts syncSync contacts
nylas contacts groups listList contact groups

Webhooks

Create and manage webhooks for real-time event notifications.

CommandDescription
nylas webhook listList all webhooks
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 triggersList available trigger types
nylas webhook test send <url>Send test payload
nylas webhook serverStart local webhook server

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

Inbound Email

Receive emails at managed addresses without OAuth.

CommandDescription
nylas inbound listList inbound inboxes
nylas inbound createCreate an inbox
nylas inbound messages <id>List messages in inbox
nylas inbound monitorReal-time message monitoring

Slack Integration

Interact with Slack workspaces from the CLI.

Other Commands

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

CommandDescription
nylas tuiLaunch interactive terminal UI
nylas uiStart web configuration UI
nylas airLaunch full email client in browser
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 updateUpdate the CLI to the latest version
nylas demo email listTry with sample data (no auth)
nylas completion bashGenerate shell completions

Guides