Author profile
Prem Keshari
Senior SRE
Prem works on infrastructure, monitoring, and operational reliability for Nylas services. His guide work emphasizes deploy-safe setup, observability, and the reliability checks behind CLI-driven email and calendar automation.
Areas of expertise
- Site Reliability
- Infrastructure
- Monitoring
- DevOps
Profiles
Guides on this site
- New-MgUserMessage: Create Outlook Drafts
New-MgUserMessage creates an Outlook draft via Graph PowerShell and Send-MgUserMessage dispatches it. Parameters, scopes, the Send-MgMessage mixup, CLI path.
- Handle Email API Outages: Backoff and Queues
Detect an email API outage in under 30 seconds, retry with exponential backoff, queue sends to a local spool, and flush it cleanly when service returns.
- Email to Slack Alerts from Terminal
Forward important emails to Slack channels automatically. Poll for new messages, filter by sender or subject, and post formatted alerts via incoming webhooks.
- Email Templates from the CLI
Create, manage, and send email templates from the command line. Variable substitution, HTML rendering, and reusable message patterns for outbound sends.
- Schedule Emails from Terminal
Schedule email sends for future delivery from the command line. Time-zone-aware scheduling, business-hours delivery, and batch queuing across Gmail and Outlook.
- Automate Email Reports from Terminal
Build automated daily and weekly email reports with cron, JSON output, jq pipelines, and shell scripts. Schedule inbox summaries and deliver by email.
- Cron Job Email Without Postfix
Send email alerts from cron jobs without Postfix, msmtp, or ssmtp. One CLI command replaces MAILTO plus a local MTA daemon. Disk, backup, and schedule examples.
- Gmail API Pagination and Sync Explained
Gmail API pagination with nextPageToken, incremental sync with historyId, maxResults defaults, and 429 rate limit recovery. Step-by-step code for every pattern.
- Replace Send-MgUserMessage
Migrate from Microsoft Graph PowerShell cmdlets to Nylas CLI. Side-by-side before/after examples for Send-MgUserMessage, New-MgMessage, and Get-MgUser.
- Fix OpenClaw CLI Errors: PATH, npm, and Windows
Fix openclaw not found, npm EACCES, Windows PATH issues, and Node.js version errors. Step-by-step fixes for every common OpenClaw CLI installation problem.
- Exchange Calendar CLI: Manage Events
Use an Exchange Calendar CLI to list events, create meetings, book rooms, and check availability from terminal. Skip EWS, Graph API, and PowerShell scripts.
- Getting Started with the CLI
Set up Nylas CLI in under 2 minutes. Create a free Nylas account, get an API key from the dashboard, and run nylas auth config. No browser auth flow needed.