Command
nylas auth scopes
Display granted OAuth scopes.
Written by Qasim Muhammad Staff SRE
What does nylas auth scopes do?
The nylas auth scopes command shows which OAuth permissions are granted for a connected account — email read, email send, calendar access, contacts access, and more. Useful for debugging permission errors or verifying least-privilege access.
Usage
nylas auth scopes [grant-id]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 auth scopes command shows which OAuth permissions are granted for a connected account — email read, email send, calendar access, contacts access, and more.
Show scopes for active account
nylas auth scopesShow scopes for specific grant
nylas auth scopes grant_abc123Example output
Scopes for grant_abc123 (alice@example.com):
email read messages, send emails, manage drafts
calendar read events, create/update events
contacts read/write contact informationTroubleshooting
Scopes show as empty
API key auth doesn't use OAuth scopes. This command is most useful for OAuth-connected accounts.
Missing expected scope
Re-run `nylas auth login` and ensure you approve all requested permissions during the OAuth flow.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Book meeting rooms from the CLI
Book meeting rooms from the CLI by listing calendar resources, using each room email as a calendar ID, and adding it as an event participant with less setup.
OfflineIMAP vs Nylas: Python IMAP sync
OfflineIMAP is a Python tool that syncs IMAP mail to local Maildir. Compare its config, Gmail OAuth2, sync speed, and an API email CLI that skips the mirror.
neomutt vs Nylas: IMAP reader vs email API
neomutt is a configurable IMAP terminal mail reader. Compare it to an API-backed email CLI on OAuth setup, scripting, offline access, and calendar reach.
mbsync vs Nylas: IMAP sync vs email API
mbsync (isync) syncs IMAP mailboxes to local Maildir for mutt or neomutt. Compare its sync model, Gmail OAuth setup, and where an API email CLI skips it.
Google Calendar API Sync Tokens
Use Google Calendar API sync tokens for incremental event sync, handle the 410 GONE full-resync, and read calendars from the CLI.
Run nylas auth scopes --help for full help output.