The easiest way to download all your messages at once is to log into AppleID.Appple.com and request your iCloud data. After Apple confirms your identity, All of your iCloud data will be available for download (including Messages). All of your information will be arranged in their respective app Cloud folders for easy downloading and unzipping.