Command

nylas otp messages

Show recent messages with OTP detection

Written by Qasim Muhammad Staff SRE

What does nylas otp messages do?

The nylas otp messages command displays recent messages with OTP detection. It is part of the OTP (One-Time Password) commands, which retrieve OTP/verification codes from email automatically. Use --json for structured output in scripts and automation.

Usage

nylas otp messages

Flags

FlagDescription
--limit int(-l)Number of messages to fetch
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--yes(-y)Skip confirmations

Examples

The nylas otp messages command displays recent messages with OTP detection.

JSON output for scripting

nylas otp messages --json

Limit the number of results

nylas otp messages --limit 10 --json

Troubleshooting

Command not found or fails

Run `nylas auth config` and `nylas auth login` to authenticate first.

Recommended guides

Run nylas otp messages --help for full help output.