Command

nylas email threads search

Search threads

Written by Qasim Muhammad Staff SRE

What does nylas email threads search do?

The nylas email threads search command searches threads. It is part of the Email Folders & Threads commands, which manage labels, folders, and conversation threads. Use --json for structured output in scripts and automation.

Usage

nylas email threads search

Flags

FlagDescription
--after stringThreads with messages after date (YYYY-MM-DD)
--before stringThreads with messages before date (YYYY-MM-DD)
--from stringFilter by sender
--has-attachmentOnly threads with attachments
--idShow thread IDs
--in stringFilter by folder (e.g., INBOX, SENT)
--limit int(-l)Maximum number of results
--starredOnly starred threads
--subject stringFilter by subject
--to stringFilter by recipient
--unreadOnly unread threads
--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 email threads search command searches threads.

JSON output for scripting

nylas email threads search --json

Limit the number of results

nylas email threads search --limit 10 --json

Troubleshooting

Command not found or fails

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

Recommended guides

Run nylas email threads search --help for full help output.