Command

nylas email folders list

List folders.

Written by Qasim Muhammad Staff SRE

What does nylas email folders list do?

The nylas email folders list command displays all email folders and labels in your connected mailbox — Inbox, Sent, Drafts, Trash, and any custom folders. Works with Gmail labels, Outlook folders, and IMAP mailboxes.

Usage

nylas email folders list

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
--idShow folder IDs

Examples

The nylas email folders list command displays all email folders and labels in your connected mailbox — Inbox, Sent, Drafts, Trash, and any custom folders.

List folders

nylas email folders list

JSON output

nylas email folders list --json

Example output

NAME       UNREAD   TOTAL
INBOX      4        312
SENT       0        198
TRASH      0        27
Archive    0        540

Troubleshooting

Gmail shows labels instead of folders

Gmail uses labels, not folders. The CLI normalizes both as folders. Gmail's system labels (INBOX, SENT, TRASH) appear as folder names.

Custom folders missing

Newly created folders may take a moment to sync. Run `nylas email folders list` again after a few seconds.

Recommended guides

Run nylas email folders list --help for full help output.