The project's README from github.com/icloud-photos-downloader/icloud_photos_downloader. As one markdown file: README.md.
See Documentation for more details. Also, check Issues
Questions or need help? Ask in the Discord or in Discussions. Bugs and feature requests go to Issues.
To make iCloud Photo Downloader work, ensure the iCloud account is configured with the following settings, otherwise Apple Servers will return an ACCESS_DENIED error:
Settings > [your name] > iCloud > Access iCloud Data on the WebSettings > [your name] > iCloud > Advanced Data Protection on your iPhone / iPad, or keep it enabled and run with --adp-web-access (see Authentication)There are three ways to run icloudpd:
icloud-* files are a different tool)See Documentation for more details
--auto-delete option)--keep-icloud-recent-days option)--watch-with-interval option)--until-found and --recent options)--set-exif-datetime option)--help option to get full list)Some changes are added to the experimental mode before they graduate into the main package. Details
To keep your iCloud photo collection synchronized to your local system:
icloudpd --directory /data --username [email protected] --watch-with-interval 3600
[!IMPORTANT] It is
icloudpd, noticloudexecutable
[!TIP] Synchronization logic can be adjusted with command-line parameters. Run
icloudpd --helpto get full list.
To move tracked local copies out of the active mirror when photos leave a shared library (including moves back to a participant's personal library), use a dedicated download directory:
icloudpd --directory /data/shared --username [email protected] \
--library 'SharedSync-YOUR-LIBRARY-ID' --prune-orphans
By default, tracking starts with newly written files and the first successful run
only establishes a baseline. To also clean old orphans in an existing dedicated
flat, original-size mirror, explicitly opt in to the one-time
--prune-orphans-adopt-existing bootstrap and preview it with --dry-run first.
Pruned files are moved into .icloudpd-pruned/, never permanently deleted: even
consistent counts cannot prove Apple's listing is complete. Exclude that folder
from gallery scans. Pruning problems warn without failing downloads. See
the option reference for ownership
requirements, hashing costs and recovery instructions.
To independently create and authorize a session (and complete 2SA/2FA validation if needed) on your local system:
icloudpd --username [email protected] --auth-only
[!TIP] This feature can also be used to check and verify that the session is still authenticated.
Want to contribute to iCloud Photos Downloader? Awesome! Check out the contributing guidelines to get involved.