Command

nylas audit init

The nylas audit init command sets up audit logging to record every CLI command execution with timestamps, arguments, and outcomes. Logs are stored locally in JSON or text format with configurable retention (default 90 days) and max file size (default 50 MB). Use audit logs to track AI agent activity, meet compliance requirements, or debug automation pipelines.

Usage

nylas audit init [--path DIR] [--retention DAYS] [--enable]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--pathCustom directory for audit log storage
--retentionLog retention period in days (default: 90)
--max-sizeMaximum log file size in MB (default: 50)
--formatLog format: json or text (default: json)
--enableEnable logging immediately after initialization
--no-promptSkip interactive prompts (use defaults)

Examples

Interactive setup

nylas audit init
# Follow prompts to configure retention, format, and storage

Non-interactive (CI/automation)

nylas audit init --retention 30 --format json --enable --no-prompt

Custom storage path

nylas audit init --path /var/log/nylas-audit --max-size 100 --enable

Troubleshooting

Permission denied when creating log directory

Ensure you have write permissions to the target path, or use --path to specify an accessible directory.

Audit already initialized

Run `nylas audit config show` to see current settings. Use `nylas audit config set` to modify individual values.

Recommended guides

Give Your AI Coding Agent an Email Address

Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.

manus-mcp-cli: Email and Calendar MCP for Manus

Configure manus-mcp-cli to register MCP servers, send email, set up Gmail and Yahoo providers, and connect Nylas CLI as an MCP server for Manus AI.

How to Send Email from the Manus AI Sandbox

Send email from the Manus AI sandbox using Nylas CLI. Install in one command, authenticate with the Nylas API, and send to any external address.

Draft Personalized Emails with Manus AI

Use Manus AI to draft personalized emails at scale with Nylas CLI. Feed a contact list, review AI-generated drafts, then send in one command.

Sync Email to CRM with Manus AI

Use Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.

Email Analytics with Manus AI

Analyze email patterns with Manus AI and Nylas CLI — volume by sender, response times, busiest hours, unread trends, and weekly reports.

Manus AI Email Research Agent

Use Manus AI to deep-search your inbox, summarize email threads, extract decisions, and compile research — all powered by Nylas CLI email commands.

Manus AI Meeting Scheduler with Nylas CLI

Schedule meetings with natural language using Manus AI and Nylas CLI. Check availability, find mutual times, and create calendar events.

Automate Email with Manus AI: Beginner Guide

Get started with Manus AI and Nylas CLI in five minutes. Send your first email, read your inbox, and search messages — all through natural language prompts.

Manus AI vs Claude Code for Email Automation

Side-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI commands, different agent runtimes.

Build an Email Support Agent with Manus AI

Build a no-code email support agent with Manus AI and Nylas CLI. Poll your inbox, match against a knowledge base, draft replies, and send with human approval.

Manus AI Inbox Zero with Nylas CLI

Reach inbox zero with Manus AI. Triage unread email, categorize by urgency, draft replies, and archive — all via natural language and Nylas CLI.

Mail Manus: Automate Email with Nylas CLI

Mail Manus forwards emails to your Manus agent for action. Add the Nylas CLI Skill for multi-provider inbox access, smart compose, calendar, and search.

Auto-Create Email Drafts from the CLI

Generate pre-filled email drafts from templates with Nylas CLI. Batch-create follow-ups, pull in conversation history, and review before sending.

CRM Email Workflows

Turn your inbox into CRM intelligence. Group emails by company, build contact hierarchies, enrich profiles, and automate outbound — all from the CLI.

Automated Email Reports with PowerShell

Build automated email reporting workflows with Nylas CLI and PowerShell. Query emails, aggregate data with Group-Object, generate HTML reports, and schedule with Task Scheduler.

Automate Email and Calendar in PowerShell

Cross-provider email and calendar automation in PowerShell using Nylas CLI. Read emails, create events, check availability, and schedule meetings from scripts.

Connect Voice Agents to Email and Calendar

Bridge LiveKit, Vapi, or any voice agent framework to email and calendar using Nylas CLI as a subprocess. Complete Python examples.

Secure Email Handling from the CLI

GPG encryption and signing, SPF/DKIM/DMARC verification, safe attachment handling, and LLM content sanitization for CLI email workflows with Nylas CLI.

Agent-First Email Design

How Nylas CLI supports AI agents as first-class users: --json structured output, --yes non-interactive mode, MCP server, subprocess tools, and stdin piping.

Why Gmail API Breaks AI Agents

Gmail API wasn't built for agents. OAuth, token refresh, rate limits, and consent screens create friction. Nylas CLI abstracts it all away.

Email as Memory for AI Agents

Use email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.

Email as Identity for AI Agents

How AI agents use email as their identity layer for signups, OTP verification, and account recovery. Extract verification codes with Nylas CLI.

Why AI Agents Need Email

AI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.

AI Agent Audit Logs with Nylas CLI

Track every action Claude Code, GitHub Copilot, and MCP agents take with Nylas CLI audit logs. Automatic source detection and compliance exports.

Create a Manus Skill for Email and Calendar

Build a Manus AI Skill that gives your agent email and calendar access using Nylas CLI as the execution layer. Covers SKILL.md format, scripts, and setup.

Nylas CLI with OpenClaw Personal Assistant

Connect Nylas CLI to OpenClaw so your self-hosted AI assistant can read, send, and schedule email and calendar events from WhatsApp, Telegram, or Discord.

Manage Calendar from the Terminal

Create, list, update, and delete calendar events from your terminal with Nylas CLI. DST-aware scheduling, timezone conversion, and AI-powered meeting finder.

GPG Encrypted Email from the CLI

Send and receive GPG/PGP encrypted email from your terminal using Nylas CLI. Auto-fetches keys from keyservers. Sign, encrypt, or both via RFC 3156 PGP/MIME.

Give AI Agents Email Access via MCP

Set up Nylas CLI as an MCP server so Claude, Cursor, Windsurf, and VS Code can read, send, and schedule email and calendar events in one command.

Run nylas audit init --help for full help output.