iCloud from a terminal, script, or agent.

Start with the quickstart or jump directly to the thing you want to do. The guides focus on commands, examples, and user-visible behavior rather than the machinery underneath the CLI.

Mail is the comprehensive service today. The project is designed to grow into a broader iCloud CLI as additional services become implemented and reliable.

Understand the project, install the CLI, connect an account, and get useful Mail workflows running quickly.

Small task guides for reading, searching, composing, organizing, importing, exporting, securing, and recovering mail.

Mail

Start here when you know you want to work with Mail but are not sure which command or guide covers the task.

Open page

Sync mail

Sync current mail, watch in the foreground, backfill history, inspect status, and repair sync state.

Open page

Read mail

List messages, inspect concise previews, read full text or HTML, and export exact message files.

Open page

Search mail

Search locally by default, add useful filters, and opt into remote search only when you need a fresh provider check.

Open page

Conversations and threads

Work with `thr_…` conversation IDs without needing to understand how the grouping is built.

Open page

Attachments

Inspect attachment metadata first, then export exact files by stable `att_…` ID.

Open page

Send, reply, and forward

Everyday outbound Mail: preview first, send deliberately, and avoid accidental duplicate sends.

Open page

Drafts

Compose incrementally with stable `drf_…` draft IDs instead of sending immediately.

Open page

Sender identities

Configure the addresses that `--from` can use and choose the default sender for an account.

Open page

Signatures

Configure signatures once, then let normal compose commands apply them automatically.

Open page

Folders

Manage the mailbox tree without needing to think about provider protocol details.

Open page

Organize mail

Familiar mailbox actions with dry-run previews for location-changing operations.

Open page

Reviewed bulk actions

Turn a search or list of IDs into a short-lived reviewed selection, then apply exactly that selection.

Open page

Empty Trash, Junk, or a folder

Preview a page, apply exactly that page, then repeat if more mail remains.

Open page

Import and export mail

Move mail in and out of the CLI using interoperable message and mailbox formats.

Open page

Mailing lists and sender preferences

Keep inbox triage useful without turning local preferences into hidden provider-side actions.

Open page

S/MIME

Optional end-to-end Mail protection for users who already work with S/MIME certificates and keys.

Open page

Outbox and send recovery

When a send goes wrong, inspect the recorded attempt before deciding whether another transmission is safe.

Open page

Conventions and copyable patterns for using icloud predictably from an agent, script, or long-running process.

Current feature coverage, diagnostics, local data, troubleshooting, release notes, and exhaustive command syntax.