Command

nylas audit logs enable

Enable audit logging. Records all CLI activity to a local log file for compliance and debugging.

Written by Qasim Muhammad Staff SRE

What does nylas audit logs enable do?

The nylas audit logs enable command activates audit logging, recording every CLI action — email sends, calendar reads, auth changes — to a local audit log. Log entries include timestamps, commands, grant IDs, and response codes. Logging stays on until you run nylas audit logs disable; review activity with nylas audit logs show and check state with nylas audit logs status.

Usage

nylas audit logs 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

Examples

The nylas audit logs enable command activates audit logging, recording every CLI action — email sends, calendar reads, auth changes — to a local audit log.

Enable audit logging

nylas audit logs enable

Enable logging, then review recent activity

nylas audit logs enable
nylas audit logs show

Example output

✓ Audit logging enabled
  Command execution history is now being recorded.

Troubleshooting

Audit log appears empty after enabling

Logging only captures actions taken after it is enabled. Run a command (e.g. nylas email list), then check nylas audit logs show.

Confirm whether logging is active

Run nylas audit logs status to see whether audit logging is currently enabled, and nylas audit logs summary for statistics.

Recommended guides

Run nylas audit logs enable --help for full help output.