Documentation
Use icloud safely from a terminal, script, or agent.
Begin with installation and the quickstart, then use the credential, output, and command guides to choose the safest input and smallest representation that fit the task.
Start
Guides
Account setup and credentials
Add multiple iCloud Mail profiles safely, choose keyring, environment, or file credentials, select a default account, and rotate or remove credentials.
Open guideLocal state and account inspection
Choose an isolated data directory, inspect bounded account inventories, understand selection rules, and handle concurrent access safely.
Open guideOutput and automation
Understand compact defaults, JSON envelopes, stdin credential safety, stderr, request IDs, timeouts, and stable exit classes.
Open guideTroubleshooting
Resolve installation, account setup, credential, state, output, completion, and man-generation problems.
Open guideReference