Search emails by query and filters. Works across Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
The nylas email search command finds emails matching a query across your connected mailbox. Filter by sender, date range, read status, or attachment presence.
Syntax
nylas email search \
Example
nylas email search
Tips
Combine with other commands: Chain nylas email search with other Nylas CLI commands using shell pipes and variables for complex workflows.
Debug mode: Add --verbose to see the underlying API requests and responses â useful when something doesn't behave as expected.
How It Works
The Nylas CLI abstracts away the differences between Gmail's API, Microsoft Graph, Exchange Web Services, and raw IMAP. You write one command; it works across all providers. This matters for automation â your cron job or CI pipeline doesn't need provider-specific logic.
Related Commands
-
nylas email sendâ Send an email. Supports scheduling, GPG signing/encryption, and tracking -
nylas email listâ List recent emails with optional filters -
nylas email readâ Read a specific email. Supports decryption and signature verification -
nylas email templates listâ List email templates
Full docs: nylas email search reference â all flags, advanced examples, and troubleshooting.
All commands: Nylas CLI Command Reference
Get started: brew install nylas/nylas-cli/nylas â other install methods
Top comments (0)