Paw Mail CLI Documentation

Command reference for the Paw Mail CLI tools

View the Project on GitHub pawpair/paw-mail-cli

Command-Line Help for paw-mail

This document contains the help content for the paw-mail command-line program.

Command Overview:

paw-mail

Combined mail CLI and TUI — manage accounts, read and organize email, trigger sync, and browse conversation threads. Run a subcommand for CLI mode, or ‘paw-mail tui’ for interactive TUI mode.

Usage: paw-mail [OPTIONS] <COMMAND>

Subcommands:
Options:

paw-mail tui

Launch interactive TUI mode

Usage: paw-mail tui

paw-mail auth

Authentication management

Usage: paw-mail auth <COMMAND>

Subcommands:

paw-mail auth login

Authenticate via OAuth Device Flow

Usage: paw-mail auth login

paw-mail auth logout

Clear stored authentication tokens

Usage: paw-mail auth logout

paw-mail auth status

Show current authentication status

Usage: paw-mail auth status

paw-mail accounts

Account management

Usage: paw-mail accounts <COMMAND>

Subcommands:

paw-mail accounts list

List all accounts

Usage: paw-mail accounts list

paw-mail accounts get

Get a specific account by provider

Usage: paw-mail accounts get --provider <PROVIDER>

Options:

paw-mail accounts add

Link a new email account via OAuth (opens browser)

Usage: paw-mail accounts add --email <EMAIL> --provider <PROVIDER>

Options:

paw-mail accounts delete

Delete an account

Usage: paw-mail accounts delete --provider <PROVIDER>

Options:

paw-mail accounts activate

Activate an account

Usage: paw-mail accounts activate --id <ID>

Options:

paw-mail accounts deactivate

Deactivate an account

Usage: paw-mail accounts deactivate --id <ID>

Options:

paw-mail accounts oauth-clients

List available OAuth clients

Usage: paw-mail accounts oauth-clients [OPTIONS]

Options:

paw-mail emails

Email operations

Usage: paw-mail emails <COMMAND>

Subcommands:

paw-mail emails folders

List folders for an account

Usage: paw-mail emails folders --provider <PROVIDER> --email <EMAIL>

Options:

paw-mail emails list

List messages in a folder

Usage: paw-mail emails list [OPTIONS] --provider <PROVIDER> --email <EMAIL> --folder <FOLDER>

Options:

paw-mail emails fetch

Fetch a specific message

Usage: paw-mail emails fetch --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

paw-mail emails body

Fetch message body

Usage: paw-mail emails body --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

Search messages

Usage: paw-mail emails search --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --query <QUERY>

Options:

paw-mail emails read

Mark message as read

Usage: paw-mail emails read --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

paw-mail emails unread

Mark message as unread

Usage: paw-mail emails unread --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

paw-mail emails flag

Flag/unflag a message

Usage: paw-mail emails flag [OPTIONS] --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

paw-mail emails move

Move a message to another folder

Usage: paw-mail emails move --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID> --destination <DESTINATION>

Options:

paw-mail emails delete

Delete a message

Usage: paw-mail emails delete --provider <PROVIDER> --email <EMAIL> --folder <FOLDER> --uid <UID>

Options:

paw-mail sync

Sync management

Usage: paw-mail sync <COMMAND>

Subcommands:

paw-mail sync status

Get current sync status for an account

Usage: paw-mail sync status --account-id <ACCOUNT_ID>

Options:

paw-mail sync trigger

Trigger a sync operation

Usage: paw-mail sync trigger [OPTIONS] --account-id <ACCOUNT_ID>

Options:

paw-mail sync history

List recent sync history

Usage: paw-mail sync history [OPTIONS] --account-id <ACCOUNT_ID>

Options:

paw-mail threads

Thread/conversation management

Usage: paw-mail threads <COMMAND>

Subcommands:

paw-mail threads list

List conversation threads

Usage: paw-mail threads list [OPTIONS] --account-id <ACCOUNT_ID>

Options:

paw-mail threads get

Get a specific thread with its messages

Usage: paw-mail threads get --thread-id <THREAD_ID> --account-id <ACCOUNT_ID>

Options:

paw-mail config

Configuration management

Usage: paw-mail config <COMMAND>

Subcommands:

paw-mail config refresh

Fetch config from remote server and cache locally

Usage: paw-mail config refresh

paw-mail config show

Show current config values

Usage: paw-mail config show


This document was generated automatically by clap-markdown.