{"id":13581500,"url":"https://github.com/chyroc/icloudgo","last_synced_at":"2025-03-17T11:30:23.685Z","repository":{"id":65964958,"uuid":"601914056","full_name":"chyroc/icloudgo","owner":"chyroc","description":"Access Apple iCloud via go, go port of pyicloud","archived":false,"fork":false,"pushed_at":"2023-12-29T15:52:22.000Z","size":331,"stargazers_count":105,"open_issues_count":7,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-16T10:51:20.648Z","etag":null,"topics":["icloud","icloud-photos","icloudpb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chyroc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-15T05:02:55.000Z","updated_at":"2025-03-15T14:46:15.000Z","dependencies_parsed_at":"2024-01-16T20:56:34.435Z","dependency_job_id":null,"html_url":"https://github.com/chyroc/icloudgo","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Ficloudgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Ficloudgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Ficloudgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyroc%2Ficloudgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chyroc","download_url":"https://codeload.github.com/chyroc/icloudgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244025133,"owners_count":20385523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["icloud","icloud-photos","icloudpb"],"created_at":"2024-08-01T15:02:03.656Z","updated_at":"2025-03-17T11:30:22.674Z","avatar_url":"https://github.com/chyroc.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# icloudgo\n\nAccess Apple iCloud via go, go port of pyicloud.\n\n## Download iCloud Photos\n\n### By Docker\n\n```shell\ndocker run \\\n  -e ICLOUD_USERNAME=your_icloud_username \\\n  -e ICLOUD_PASSWORD=your_icloud_password \\\n  -e ICLOUD_COOKIE_DIR=/icloud_cookie \\\n  -e ICLOUD_DOMAIN=com \\\n  -e ICLOUD_OUTPUT=/icloud_photos \\\n  -e ICLOUD_ALBUM= \\\n  -e ICLOUD_THREAD_NUM=10 \\\n  -e ICLOUD_AUTO_DELETE=true \\\n  -e ICLOUD_STOP_FOUND_NUM=50 \\\n  -e ICLOUD_FOLDER_STRUCTURE=\"2006/01/02\" \\\n  -e ICLOUD_FILE_STRUCTURE=\"id\" \\\n  -e ICLOUD_WITH_LIVE_PHOTO=\"true\" \\\n  -v /path/to/your/cookie:/icloud_cookie \\\n  -v /path/to/your/photos:/icloud_photos \\\n  ghcr.io/chyroc/icloud-photo-cli:0.21.1 download\n```\n\n### By Go\n\n- **Install**\n\n```shell\ngo install github.com/chyroc/icloudgo/icloud-photo-cli@latest\n```\n\n- **Usage**\n\n```shell\nNAME:\n   icloud-photo-cli download\n\nUSAGE:\n   icloud-photo-cli download [command options] [arguments...]\n\nDESCRIPTION:\n   download photos\n\nOPTIONS:\n   --username value, -u value                          apple id username [$ICLOUD_USERNAME]\n   --password value, -p value                          apple id password [$ICLOUD_PASSWORD]\n   --cookie-dir value, -c value                        cookie dir [$ICLOUD_COOKIE_DIR]\n   --domain value, -d value                            icloud domain(com,cn) (default: com) [$ICLOUD_DOMAIN]\n   --output value, -o value                            output dir (default: \"./iCloudPhotos\") [$ICLOUD_OUTPUT]\n   --album value, -a value                             album name, if not set, download all albums [$ICLOUD_ALBUM]\n   --folder-structure 2006, --fs 2006                  folder structure, support: 2006(year), `01`(month), `02`(day), `15`(24-hour), `03`(12-hour), `04`(minute), `05`(second), example: `2006/01/02`, default is `/` [$ICLOUD_FOLDER_STRUCTURE]\n   --file-structure value                              support: id(unique file id), name(file human readable name) (default: \"id\") [$ICLOUD_FILE_STRUCTURE]\n   --stop-found-num stop-found-num, -s stop-found-num  stop download when found stop-found-num photos have been downloaded (default: 0) [$ICLOUD_STOP_FOUND_NUM]\n   --thread-num value, -t value                        thread num, if not set, means 1 (default: 1) [$ICLOUD_THREAD_NUM]\n   --auto-delete, --ad                                 Automatically delete photos from local but recently deleted folders (default: true) [$ICLOUD_AUTO_DELETE]\n   --with-live-photo, --lp                             Save video of the live photo (default: true) [$ICLOUD_WITH_LIVE_PHOTO]\n   --help, -h                                          show help\n```\n\n\n## Upload iCloud Photos\n\n### By Docker\n\n```shell\ndocker run \\\n  -i \\\n  -e ICLOUD_USERNAME=your_icloud_username \\\n  -e ICLOUD_PASSWORD=your_icloud_password \\\n  -e ICLOUD_COOKIE_DIR=/icloud_cookie \\\n  -e ICLOUD_DOMAIN=com \\\n  -e ICLOUD_FILE=/icloud_photos/filepath \\\n  -v /path/to/your/cookie:/icloud_cookie \\\n  -v /path/to/your/photos:/icloud_photos \\\n  ghcr.io/chyroc/icloud-photo-cli:0.21.1 upload\n```\n\n### By Go\n\n- **Install**\n\n```shell\ngo install github.com/chyroc/icloudgo/icloud-photo-cli@latest\n```\n\n- **Usage**\n\n```shell\nNAME:\n   icloud-photo-cli upload\n\nUSAGE:\n   icloud-photo-cli upload [command options] [arguments...]\n\nDESCRIPTION:\n   upload photos\n\nOPTIONS:\n   --username value, -u value    apple id username [$ICLOUD_USERNAME]\n   --password value, -p value    apple id password [$ICLOUD_PASSWORD]\n   --cookie-dir value, -c value  cookie dir [$ICLOUD_COOKIE_DIR]\n   --domain value, -d value      icloud domain(com,cn) (default: com) [$ICLOUD_DOMAIN]\n   --file value, -f value        file path [$ICLOUD_FILE]\n   --help, -h                    show help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Ficloudgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchyroc%2Ficloudgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyroc%2Ficloudgo/lists"}