restore icloud photos without upgrading storage
I have 13,000 photos in iCloud. I want to download them, and then stop using iCloud for photo storage. I know of two ways to accomplish this, but both have problems.
1. I could go to icloud.com and manually download the files. However, I do not see a select-all option. Clicking on each photo one by one 13,000 times is too much.\
2. I could connect to iCloud from the Photos app. However, even though I am only downloading (not uploading), I can't find a way to connect Photos to iCloud without first paying extra for more storage space since my current photo library is even larger.
What should I do to get my photos from iCloud?