Follow the instructions in this Apple support article > Move your content to a new Mac - Apple Support