# Install and Run There are three ways to run `icloudpd`: 1. Download executable for your platform from the GitHub [Release](https://github.com/icloud-photos-downloader/icloud_photos_downloader/releases/tag/v1.21.0) and run it 1. Use package manager to install, update, and, in some cases, run ([Docker](#docker), [PyPI](#pypi), [AUR](#aur), [npm](#npm)) 1. Build and run from the source (docker)= ## Docker ```sh docker run -it --rm --name icloudpd -v $(pwd)/Photos:/data -e TZ=America/Los_Angeles icloudpd/icloudpd:latest icloudpd --directory /data --username my@email.address --watch-with-interval 3600 ``` Image asset date will be converted to specified TZ and then used for creating folders (see `--folder-stucture` parameter) Synchronization logic can be adjusted with command-line parameters. Run the following to get full list: ``` sh docker run -it --rm icloudpd/icloudpd:latest icloudpd --help ``` ```{note} On Windows: - use `%cd%` instead of `$(pwd)` - or full path, e.g. `-v c:/photos/icloud:/data` - only Linux containers are supported ``` ```{note} Getting Docker: - On Windows and Mac Docker is available as [Docker Desktop](https://www.docker.com/products/docker-desktop/) app. - On Linux, Docker engine and client can be installed using platform package managers, e.g. [Installing on Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04) - Appliance (e.g. NAS) will have their own way to install Docker engines and running containers - see manufacturer's instructions. ``` (pypi)= ## PyPI Install: ``` sh pip install icloudpd ``` Run: ``` sh icloudpd --directory /data --username my@email.address --watch-with-interval 3600 ``` ````{note} on Windows: ``` sh pip install icloudpd --user ``` Plus add `C:\Users\\AppData\Roaming\Python\Python\Scripts` to PATH. The exact path will be given at the end of `icloudpd` installation. ```` ```{note} on MacOS: Add `/Users//Library/Python//bin` to PATH. The exact path will be given at the end of `icloudpd` installation. ``` (aur)= ## AUR AUR packages can be installed on Arch Linux. Installation can be done [manually](https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages) or with the use of an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers). The manual process would look like this: ``` sh git clone https://aur.archlinux.org/icloudpd-bin.git cd icloudpd-bin makepkg -sirc ``` With the use of the AUR helper e.g. [yay](https://github.com/Jguer/yay) the installation process would look like this: ``` sh yay -S icloudpd-bin ``` (npm)= ## npm ``` sh npx --yes icloudpd --directory /data --username my@email.address --watch-with-interval 3600 ```