Command

nylas doctor

Run system diagnostics.

Written by Qasim Muhammad Staff SRE

What does nylas doctor do?

The nylas doctor command runs local diagnostics for the CLI, checking config, auth state, network access, and dependencies before deeper troubleshooting.

Usage

nylas doctor [flags]

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

Run a full diagnostics check

nylas doctor

Run diagnostics with detailed output

nylas doctor --verbose

Example output

Nylas CLI Health Check

  ✓ Configuration - Region: us
  ✓ Secret Store - system keyring
  ✓ API Credentials - Configured
  ✓ Network - Connected (latency: 159ms)
  ⚠ Grants - 5 grant(s), default may be invalid

Summary

  1 warning(s), 4 passed

  Recommendations:
    - Run 'nylas auth list' to check grant status

Troubleshooting

Doctor reports auth or config problems

Re-run `nylas auth config` or `nylas auth login` based on the reported failure, then execute `nylas doctor` again.

Recommended guides

Run nylas doctor --help for full help output.