Command
nylas audit config set
Set an audit configuration value. Valid keys: retention_days, max_size_mb, rotate_daily, compress_old, log_request_id, log_api_details.
Written by Qasim Muhammad Staff SRE
What does nylas audit config set do?
The nylas audit config set command changes audit logging settings like retention period (retention_days), maximum log file size (max_size_mb), daily rotation (rotate_daily), compression (compress_old), and whether to capture API request IDs and details. Changes take effect immediately.
Usage
nylas audit config set <key> <value>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 |
Examples
The nylas audit config set command changes audit logging settings like retention period (retention_days), maximum log file size (max_size_mb), daily rotation (rotate_daily), compression (compress_old), and whether to capture API request IDs and details.
Change retention period
nylas audit config set retention_days 30Move log storage
nylas audit config set path /var/log/nylas-auditIncrease max log size
nylas audit config set max_size_mb 200Enable daily rotation
nylas audit config set rotate_daily trueLog API request details
nylas audit config set log_api_details trueExample output
✓ Updated audit config
retention_days: 30Troubleshooting
Invalid configuration key
Valid keys: retention_days, max_size_mb, rotate_daily, compress_old, log_request_id, log_api_details, path.
Changes not taking effect
Configuration changes apply to new log entries. Existing entries are not affected.
Recommended guides
Thunderbird vs Nylas: GUI vs CLI email
Thunderbird is a desktop GUI email client with OAuth and calendar built in. Compare it to a scriptable, headless CLI for servers, cron jobs, and AI agents.
Pipedream vs Nylas for Email Automation
Pipedream wires 3,000+ apps with event workflows and code steps. Nylas is a native email API with a CLI for agents and cron. Compare as a Pipedream alternative.
Detect Calendar Conflicts from the CLI
Spot double-booked meetings and overlapping events from the terminal. AI conflict detection and jq scripts catch calendar conflicts before they derail your day.
Block Focus Time on Your Calendar (CLI)
Context-switching costs 23 minutes of focus per interruption. Block focus time on Google Calendar from your terminal so meetings can't eat your deep-work slots.
Build a Strands Email Agent
Give a Strands Agents SDK agent email access using the Nylas CLI as a @tool. One function reaches Gmail, Outlook, and 4 more providers — no OAuth code needed.
Cloudflare Agents Email Tools
Use the Cloudflare Agents SDK to build a stateful email agent on Workers — connect to the Nylas MCP server over HTTP and call email tools in TypeScript.
Run nylas audit config set --help for full help output.