Command

nylas auth config

Configure API credentials for the Nylas CLI.

Usage

nylas auth config [--api-key KEY]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--api-keySet API key directly (non-interactive)

Examples

Interactive configuration

nylas auth config
# Paste your API key when prompted

Non-interactive (CI/scripts)

export NYLAS_API_KEY=your_api_key
nylas auth config

Troubleshooting

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

Run nylas auth config --help for full help output.