# iCloud Photos Downloader (icloudpd)

> A command-line tool to download photos from iCloud

Source: https://talira.ai/catalog/icloud-photos-downloader-icloudpd-ckxvkzj7
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [media / photos / cloud library backup](https://talira.ai/categories/media/photos/cloud-library-backup)
- Platforms: linux, macos, windows, docker, cli[^2][^3]
- Licence: MIT[^6][^7]
- Pricing: Free and open source[^6]
- Free tier: yes[^6]
- Self-hostable: yes[^2]
- Backed by: [iCloud Photos Downloader](https://talira.ai/orgs/icloud-photos-downloader.md)
- Creator: Nathan Broadbent (ndbroadbent), who made its first commit in May 2016

iCloud Photos Downloader (`icloudpd`) is a command-line tool that downloads every photo and video in an [iCloud Photos](https://talira.ai/catalog/icloud-photos-b7jcnwk3.md) library to a folder on Linux, Windows or [macOS](https://talira.ai/catalog/macos-8swyggxb.md), a laptop, desktop or NAS. It runs once or watches for changes on an interval, in three modes: copy new photos (the default), sync (also delete local files that were removed in iCloud) and move (delete photos from iCloud once they're downloaded, keeping the most recent days). It saves Live Photos as an image and a video, RAW and RAW+JPEG, albums and iOS shared libraries, can set EXIF dates, de-duplicates by name and handles several Apple accounts in one run. It signs in with the account's password and two-factor code, typed in the console or in a small built-in web UI, accounts with Advanced Data Protection work with `--adp-web-access`, and security keys work from version 1.33.0. It ships as binaries for each platform, a Python package, a [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image and an npm wrapper, and its docs show setups for [TrueNAS](https://talira.ai/catalog/truenas-pt2m6pd4.md) and Synology NAS. Nathan Broadbent created it in 2016; volunteers in the icloud-photos-downloader [GitHub](https://talira.ai/catalog/github-ppcgj756.md) organization maintain it today.

## Links

- Website: https://icloud-photos-downloader.github.io/icloud_photos_downloader/
- GitHub: https://github.com/icloud-photos-downloader/icloud_photos_downloader
- Docs: https://icloud-photos-downloader.github.io/icloud_photos_downloader/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/icloudpd>[^1]

## Problems it solves

- download every photo and video in my iCloud library to a folder on my home server
- back up my iCloud Photos to my Synology NAS automatically every night
- keep a local copy of my iPhone photo library on a Linux machine, without a Mac
- downloading my whole photo library from icloud.com in the browser is hopeless with tens of thousands of photos
- move old photos off iCloud onto my own disk to free up iCloud storage
- mirror my iCloud photo library so photos I delete on my phone also leave the backup
- run a Docker container on my NAS that pulls new photos from iCloud every hour
- back up the photos of everyone in my family's Apple accounts to one place
- save iCloud Live Photos as both the still image and the video file
- download RAW photos from iCloud along with their JPEG versions
- get my iCloud photos into a self-hosted photo library like Immich by syncing them to a folder first
- a script that downloads all my iCloud photos without opening the Photos app
- back up the iCloud Shared Library my partner and I share to a local drive
- iCloud photo backup that still works with Advanced Data Protection turned on
- type the Apple two-factor code into a web page for a headless photo backup running on my NAS
- get an email when my unattended iCloud photo download needs a new two-factor code
- download only one iCloud album, or only the last few hundred photos

## Features

- copy, sync (--auto-delete) and move (--keep-icloud-recent-days) modes
- one-off download or continuous watch (--watch-with-interval)
- Live Photos as separate image and video files
- RAW and RAW+JPEG
- albums, folders of albums and iOS 16 shared libraries (--library)
- moves files that left a shared library into .icloudpd-pruned (--prune-orphans)
- incremental runs with --until-found and --recent
- EXIF date updates (--set-exif-datetime)
- de-duplication of photos with the same name
- several Apple accounts or configs in one run
- password from a parameter, the system keyring, the console or the web UI
- 2FA code by console, web UI or SMS; security keys (FIDO) from 1.33.0
- Advanced Data Protection accounts with --adp-web-access
- email notification when two-factor authentication expires
- web UI for sign-in, status, progress and cancelling or resuming a run
- --auth-only to create and check a session
- binaries for Linux (glibc and musl; amd64, arm64, arm32v7), macOS (Apple Silicon and Intel) and Windows
- Docker image, PyPI package, AUR package (icloudpd-bin) and npm wrapper
- follows HTTPS_PROXY for proxies

## Limitations

- Doesn't work unless Access iCloud Data on the Web is turned on for the Apple account: Apple's servers return ACCESS_DENIED[^2][^3]
- Can't stay signed in for good: Apple expires the two-factor session, currently every two months, and you enter a new code[^4]
- No graphical app: it's a command-line program, and its web UI only takes the password and 2FA code and shows progress[^2][^5]
- The web UI has no login or password protection: it listens on port 8080 on every network interface[^5]
- No Windows build for ARM: the Windows binary is amd64 only[^2]
- Unreliable from mainland China: iCloud.com is blocked there and the --domain cn option has mixed results[^4]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by iCloud Photos Downloader
- created by Nathan Broadbent (ndbroadbent), who made its first commit in May 2016

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [iCloud Photos](https://talira.ai/catalog/icloud-photos-b7jcnwk3.md)
- Works with [Immich](https://talira.ai/catalog/immich-ghds8n8s.md)
- Works with [PhotoPrism](https://talira.ai/catalog/photoprism-b8rhwtgk.md)

## Alternatives

- [iCloud Photos Sync](https://talira.ai/catalog/icloud-photos-sync-b212n9z1.md): One-way sync engine for the iCloud Photos Library into the native file system
- [iCloud-docker](https://talira.ai/catalog/icloud-docker-6b127q3g.md): Dockerized iCloud client: make a local copy of your iCloud documents and photos, and keep it up to date
- [kei](https://talira.ai/catalog/kei-chg31nve.md): Fast, parallel backups for cloud-hosted photos and videos
- [PyiCloud](https://talira.ai/catalog/pyicloud-zyv1wxjv.md): A Python wrapper for accessing data from iCloud webservices
- [OSXPhotos](https://talira.ai/catalog/osxphotos-yf14hk07.md): Python app to work with pictures and associated metadata from Apple Photos on macOS

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://icloud-photos-downloader.github.io/icloud_photos_downloader/install.html (checked 20 Nov 2026)
[^3]: https://github.com/icloud-photos-downloader/icloud_photos_downloader/blob/master/README.md (checked 20 Nov 2026)
[^4]: https://icloud-photos-downloader.github.io/icloud_photos_downloader/authentication.html (checked 20 Nov 2026)
[^5]: https://icloud-photos-downloader.github.io/icloud_photos_downloader/webui.html (checked 20 Nov 2026)
[^6]: https://github.com/icloud-photos-downloader/icloud_photos_downloader/blob/master/LICENSE.md (checked 20 Nov 2026)
[^7]: https://pypi.org/project/icloudpd/ (checked 20 Nov 2026)
