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

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 contacts groups list command displays all contact groups (Google) or categories (Outlook) in your address book.

List all contact groups

nylas contacts groups list

Count 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 groups

Troubleshooting

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

Run nylas contacts groups list --help for full help output.