Authentication is the gate between your terminal and your mailbox. nylas auth config handles it.
The nylas auth config command stores your Nylas API key so the CLI can authenticate requests to Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP providers. Run it interactively or pass --api-key for CI/CD pipelines and scripts.
Quick Start
brew install nylas/nylas-cli/nylas nylas init nylas auth config
Enter fullscreen mode
Exit fullscreen mode
Syntax
nylas auth config [ --api-key KEY]
Enter fullscreen mode
Exit fullscreen mode
Examples
Interactive configuration:
nylas auth config # Paste your API key when prompted
Enter fullscreen mode
Exit fullscreen mode
Non-interactive (CI/scripts):
export NYLAS_API_KEY = your_api_key nylas auth config
Enter fullscreen mode
Exit fullscreen mode
How It Works
The CLI stores credentials securely in your system keychain (macOS Keychain, Linux Secret Service, or Windows Credential Manager).…