Skip to main content

☁️ icloud-cli-tools

Access your iCloud Calendar, Reminders, Notes, and Find My devices from the Linux terminal.

CI PyPI License: MIT Python 3.9+

Features

  • 📅 Calendar — List, create, and delete events with natural date parsing
  • Reminders — Manage reminders across lists, mark complete, set priorities
  • 📝 Notes — Read, create, and search your iCloud Notes
  • 📍 Find My — Locate devices, play sounds, activate Lost Mode
  • 🔄 Background Sync — Daemon with systemd integration for periodic caching
  • 🔐 Secure Auth — 2FA support, OS keyring for credentials, session caching
  • 🎨 Beautiful Output — Rich tables, JSON, and plain text formats

Installation

# From PyPI (recommended)
pip install icloud-cli-tools

Or install from source:

# Clone the repo
git clone https://github.com/alan13367/icloud-cli-tools.git
cd icloud-cli-tools

# Set up a virtual environment (recommended, required on modern Debian/Ubuntu)
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Tip: To use icloud-cli without activating the venv every time, add an alias:

echo 'alias icloud-cli="~/icloud-cli-tools/.venv/bin/icloud-cli"' >> ~/.bashrc
source ~/.bashrc

Quick Start

# 1. Login to your iCloud account
icloud-cli login

# 2. Set up Notes access (requires app-specific password)
icloud-cli notes setup-imap

# 3. Start using it!
icloud-cli calendar list
icloud-cli reminders list
icloud-cli notes list
icloud-cli findmy list

Usage

Authentication

icloud-cli login          # Interactive login with 2FA
icloud-cli logout         # Clear all stored credentials
icloud-cli status         # Check auth status

Calendar

icloud-cli calendar list                    # Events for next 7 days
icloud-cli calendar list --from today --to tomorrow
icloud-cli calendar show <event-id>
icloud-cli calendar add -t "Meeting" -s "2025-06-15 10:00" -e "2025-06-15 11:00"
icloud-cli calendar delete <event-id>

Reminders

icloud-cli reminders list                   # All active reminders
icloud-cli reminders list --list "Shopping" --completed
icloud-cli reminders add -t "Buy milk" -d "2025-06-15" -l "Shopping"   # bare date -> all-day reminder
icloud-cli reminders add -t "Standup" -d "2025-06-15 09:30"            # date + time -> timed reminder
icloud-cli reminders complete <reminder-id>
icloud-cli reminders delete <reminder-id>

Notes

icloud-cli notes list
icloud-cli notes show <note-id>
icloud-cli notes add -t "My Note" -b "Note content here"
icloud-cli notes search "keyword"

Note: Notes access requires an app-specific password. Generate one at appleid.apple.comSign In & SecurityApp-Specific Passwords.

Find My

icloud-cli findmy list                      # All devices with status
icloud-cli findmy locate "iPhone"           # GPS coordinates + Maps link
icloud-cli findmy play-sound "iPhone"       # Ring your device
icloud-cli findmy lost-mode "iPhone" -p "+1234567890" -m "Please return"

Sync & Daemon

icloud-cli sync                # One-shot sync to local cache
icloud-cli daemon start        # Start background sync (every 15 min)
icloud-cli daemon stop         # Stop daemon
icloud-cli daemon status       # Check daemon status

Systemd Integration (Linux)

# Install the service
cp systemd/icloud-cli-sync.service ~/.config/systemd/user/
systemctl --user enable icloud-cli-sync
systemctl --user start icloud-cli-sync

Output Formats

icloud-cli calendar list -f table   # Rich formatted table (default)
icloud-cli calendar list -f json    # Machine-readable JSON
icloud-cli calendar list -f plain   # Tab-separated for scripting

Configuration

Config file: ~/.config/icloud-cli/config.toml

[general]
default_format = "table"
verbose = false

[auth]
apple_id = "your@icloud.com"

[sync]
sync_interval_minutes = 15

[calendar]
default_calendar = "Personal"

[reminders]
default_reminder_list = "Reminders"

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Lint
ruff check src/ tests/

⚠️ Disclaimer

This project uses unofficial/private iCloud web APIs via the pyicloud library. Apple may change these APIs at any time without notice, which could break functionality. This tool is not affiliated with or endorsed by Apple Inc.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

icloud_cli_tools-0.1.3.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

icloud_cli_tools-0.1.3-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file icloud_cli_tools-0.1.3.tar.gz.

File metadata

  • Download URL: icloud_cli_tools-0.1.3.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for icloud_cli_tools-0.1.3.tar.gz
Algorithm Hash digest
SHA256 91d63b2d78c7062ba130a3e7b561cbff0912bc6687530c10786281853b38f4a7
MD5 548d5f839231465cdcafdcc3f44fc1e6
BLAKE2b-256 d143c18d36ed430d1029285582deab2a557d3f45d1d503bbcb6acf915dac57e0

See more details on using hashes here.

File details

Details for the file icloud_cli_tools-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for icloud_cli_tools-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 204b3a602117aba7663cb820e53e05f1fc4fa7e30757800fa5f43b8386598181
MD5 c148bc6cde35d48c6023e42a60520700
BLAKE2b-256 060125326ddd98bdba26bfd1e0eac8989941f8b946272e8357a1f0269b8ff183

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page