Command
nylas contacts groups list
List contact groups and labels.
Written by Qasim Muhammad Staff SRE
What does nylas contacts groups list do?
The nylas contacts groups list command displays all contact groups (Google) or categories (Outlook) in your address book. Each entry shows the group name, ID, and member count. Use --json to pipe group data into scripts. Works with Google Contacts, Outlook People, Exchange, Yahoo, iCloud, and IMAP providers.
Usage
nylas contacts groups list [--json]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 contacts groups list command displays all contact groups (Google) or categories (Outlook) in your address book.
List all contact groups
nylas contacts groups listCount contacts per group as JSON
nylas contacts groups list --json | jq '.[] | {name, member_count}'Example output
NAME ID
My Contacts group_abc123
Starred group_def456
Work group_ghi789
3 groupsTroubleshooting
No groups returned
Not all providers support contact groups. Google Contacts and Outlook People do; some IMAP providers don't expose groups via API.
Group member count shows 0
Member counts are fetched separately on some providers. Try nylas contacts list --json to see group assignments on individual contacts.
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.
Manage contact groups from the CLI
Manage contact groups from the CLI: list, create, rename, and delete groups, then map Google groups and Microsoft contact folders with verified flags.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Customer.io vs Nylas: Email Compared
Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.
Run nylas contacts groups list --help for full help output.