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 searchFlags
| Flag | Description |
|---|---|
| --after string | Threads with messages after date (YYYY-MM-DD) |
| --before string | Threads with messages before date (YYYY-MM-DD) |
| --from string | Filter by sender |
| --has-attachment | Only threads with attachments |
| --id | Show thread IDs |
| --in string | Filter by folder (e.g., INBOX, SENT) |
| --limit int(-l) | Maximum number of results |
| --starred | Only starred threads |
| --subject string | Filter by subject |
| --to string | Filter by recipient |
| --unread | Only unread threads |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom 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 --jsonLimit the number of results
nylas email threads search --limit 10 --jsonTroubleshooting
Command not found or fails
Run `nylas auth config` and `nylas auth login` to authenticate first.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Customer.io vs Nylas: Email Compared
Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.
Knock vs Nylas: Notifications vs Email API
Knock delivers multi-channel product notifications via workflows; Nylas provides two-way email and calendar sync. Compare scope, pricing, and agent support.
Run nylas email threads search --help for full help output.