How do I transfer pictures from iPhoto to iCloud Drive?

I have 17000 pictures in my iPhoto library. How do I transfer them to iCloud Drive?


Find the location of your iPhoto library (usually in ~/Pictures) and move it to the iCloud Drive folder in Finder. Once the library has moved, you can switch library in iPhoto by launching iPhoto with ⌥, then selecting the new library location.