First time with the Nylas CLI? nylas init is where everything starts.
The nylas init command walks you through setting up the Nylas CLI in four steps: creating or logging into your Nylas account, selecting or creating an application, generating an API key, and syncing your connected email accounts. If you already have an API key, pass --api-key to skip the interactive wizard.
Syntax
nylas init [ --api-key KEY] [ --region us|eu] [ --google |--microsoft|--github]
Enter fullscreen mode
Exit fullscreen mode
Examples
Interactive guided setup:
nylas init # Follow the 4-step wizard: # Step 1: Create account or log in # Step 2: Select or create application # Step 3: Generate API key # Step 4: Sync email accounts
Enter fullscreen mode
Exit fullscreen mode
Quick setup with existing API key:
nylas init --api-key nyl_abc123
Enter fullscreen mode
Exit fullscreen mode
Quick setup for EU region:
nylas init --api-key nyl_abc123 --region eu
Enter fullscreen mode
Exit fullscreen mode
Start with Google…