Command
nylas audit init
Initialize audit logging for the Nylas CLI. Creates the log directory, default configuration, and optionally enables logging immediately.
Usage
nylas audit init [--path DIR] [--retention DAYS] [--enable]Flags
| Flag | Description |
|---|---|
| --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 |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --path | Custom directory for audit log storage |
| --retention | Log retention period in days (default: 90) |
| --max-size | Maximum log file size in MB (default: 50) |
| --format | Log format: json or text (default: json) |
| --enable | Enable logging immediately after initialization |
| --no-prompt | Skip interactive prompts (use defaults) |
Examples
Interactive setup
nylas audit init
# Follow prompts to configure retention, format, and storageNon-interactive (CI/automation)
nylas audit init --retention 30 --format json --enable --no-promptCustom storage path
nylas audit init --path /var/log/nylas-audit --max-size 100 --enableTroubleshooting
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
Create a Manus Skill for Email and Calendar
Build a Manus AI Skill that gives your agent email and calendar access using the Nylas CLI.
Nylas CLI with OpenClaw Personal Assistant
Give your OpenClaw assistant email, calendar, and contacts superpowers. Includes exec-approvals.json setup and a ready-made Nylas skill.
Manage Calendar from the Terminal
DST-aware event creation, timezone locking, AI scheduling, and break time protection.
GPG Encrypted Email from the CLI
Sign, encrypt, and verify email with GPG. Auto-fetches keys from public keyservers.
Give AI Agents Email Access via MCP
Connect Claude, Cursor, or VS Code to your inbox and calendar in one command.
Send Email from the Terminal
Send, read, search, and automate email from your terminal. Works with Gmail, Outlook, and IMAP.
Run nylas audit init --help for full help output.