What's the best way to transfer your Mac's system config to a new Mac?

I've had my MacBook Pro for almost 5 years, so I'll probably purchase a new one in the coming months. Over 5 years my computer has my system setting, dotfiles, and other config just how I like it. Is there an easy way to port all of this to a new Mac?
3 recommended
  1. Mike CoutermarshEngineer @ PlanetScale · Written
    I just did this a couple months ago. I used the built in Migration Assistant and had it run over my local network. I think it took roughly 3 hours, but I had everything transferred over perfectly. Saved me a ton of time.
  2. Ivan Mirindie app developer · Written
    If you are comfortable with Terminal, I highly recommend Mackup. It moves application config folders to your favorite cloud storage (like Dropbox), so they are always synced between devices and easily deployed on new ones.
  3. VishuUX at Booking.com · Written
    Time machine does exactly what you're looking for afaik, take a full backup of your current machine and restore it to your new mac at the time of setting it up for the first time, you'll find everything is setup exactly as it was on the older mac - apps, configuration, data etc