Skip to main content

Access iCloud Calendar, Reminders, Notes, and Find My from Linux

Project description

☁️ 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"
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

Project details


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.2.tar.gz (30.3 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.2-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for icloud_cli_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dcc03597adfefa0a267719277cd8270f6a4c0695c6d6b766c2e63d2e647da21e
MD5 e5aae5a2b0aa7d622a9f173d2fcd87c9
BLAKE2b-256 bf0de2756ea7277bb7a844175bc3500e3079bcb093843b7c5823ad4db024bb8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for icloud_cli_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f96ab60414dd0e4cac554e655439e6b4557fcafe67545c338891eb3807707337
MD5 b9818cc8a2ccedb3d1212a1815fb7f87
BLAKE2b-256 01a37a7db13391b42c704509aa8d76157d6375785802c8089731d7fc5d9d4992

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page