Command
nylas auth config
Configure API credentials for the Nylas CLI.
Usage
nylas auth config [--api-key KEY]Flags
| 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 |
| --api-key | Set API key directly (non-interactive) |
Examples
Interactive configuration
nylas auth config
# Paste your API key when promptedNon-interactive (CI/scripts)
export NYLAS_API_KEY=your_api_key
nylas auth configTroubleshooting
Invalid API key
Verify your key at dashboard-v3.nylas.com. Ensure no extra spaces when pasting.
Config not persisting
Check write permissions for ~/.config/nylas/ or the path in --config.
Recommended guides
Send Email from the Terminal
Send, read, search, and automate email from your terminal. Works with Gmail, Outlook, and IMAP.
Give AI Agents Email Access via MCP
Connect Claude, Cursor, or VS Code to your inbox and calendar in one command.
Build an LLM Agent with Email and Calendar Tools
Add email and calendar tools to your custom agent. Use Nylas CLI as subprocess tools. No API code.
E2E Email Testing with Playwright
Send and verify transactional emails in tests. Poll with the CLI, parse content, click links.
Manage Calendar from the Terminal
DST-aware event creation, timezone locking, AI scheduling, and break time protection.
Run nylas auth config --help for full help output.