) for email management across multiple accounts.
for AI-optimized output.
).
- Browser login (recommended):
porteden auth login
— opens browser, credentials stored in system keyring
- Direct token:
porteden auth login --token <key>
— stored in system keyring
- Verify:
porteden auth status
- If
PE_API_KEY
is set in the environment, the CLI uses it automatically (no login needed).
- List emails (or --today, --yesterday, --week, --days N):
porteden email messages -jc
- Filter emails:
porteden email messages --from sender@example.com -jc
(also: --to, --subject, --label, --unread, --has-attachment)
- Search emails:
porteden email messages -q "keyword" --today -jc
- Custom date range:
porteden email messages --after 2026-02-01 --before 2026-02-07 -jc
- All emails (auto-pagination):
porteden email messages --week --all -jc
- Get single email:
porteden email message <emailId> -jc
- Get thread:
porteden email thread <threadId> -jc
- Send email:
porteden email send --to user@example.com --subject "Hi" --body "Hello"
(also: --cc, --bcc, --body-file, --body-type text, --importance high)
- Send with named recipient:
porteden email send --to "John Doe <john@example.com>" --subject "Hi" --body "Hello"
- Reply:
porteden email reply <emailId> --body "Thanks"
(add --reply-all
for reply all)
- Forward:
porteden email forward <emailId> --to colleague@example.com
(optional --body "FYI"
, --cc)
- Modify email:
porteden email modify <emailId> --mark-read
(also: --mark-unread, --add-labels IMPORTANT, --remove-labels INBOX)
- Delete email:
porteden email delete <emailId>