Question: how to transfer all files from icloud to iphone?
Answer: Tap on your name -> iCloud. Select Photos and then iCloud photos (or iCloud Photo Library for older iOS versions). Make sure that you have selected the “Download and Keep Originals” option. Now, all you have to do is wait until the iCloud photos are downloaded to the iPhone.