Question: how to transfer everything on a new iphone?
Answer: Turn on your new iPhone and follow the setup instructions.
On the Apps & Data screen, tap "Restore from iCloud Backup."
When your iPhone asks you to sign into iCloud, use the same Apple ID that you used on your previous iPhone.