Menu

1 / 2

Configure API credentials for the Nylas CLI — nylas auth config Guide

DEV Community·Qasim Muhammad·6 months ago
#18X7dKyD
#cli#authentication#security#devtools#nylas
Reading 0:00
15s threshold

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).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.