Wouldn’t it be nice if there was a button on the Music app that allows you to download all of your music? There is no such thing, but it works with a little detour.

Apple doesn’t allow you to download all of your music. At least not in the simple way that you only have to tap a button, for example. Nevertheless, you can download all the songs from your personal music library and even keep them up to date without having to do anything in the future. To do this, you need a Mac with the music app or iTunes and your iPhone or iPad.
Here’s how to download your entire music library
Open the Music app on your Mac and click on “File> New Smart Playlist” in the menu bar. If you’re using macOS Mojave or earlier, continue in iTunes. After “Contains” select the option Music “and set the property” Playing time is greater than 00:01 “. Remove the tick in front of the maximum objects. Check the box below in front of “Update automatically” and then click on “OK”. Now set a name so that you can quickly find your playlist again.

If the “Sync library” option is activated in “Music> Settings> General” in the music app on the Mac and also in “Settings> Music” on your iOS device, the new playlist will appear in your library after a short while. The playlist should now appear under “Recently added” in the “Media library” tab. Select it and tap the cloud icon next to the title cover.
The download can take a few minutes or even several hours, depending on the size of your media library and the speed of your internet connection. So you should be patient and have enough storage space. It is also advisable to connect your iPhone to the charging cable so that you don’t run the risk of running out of battery when you need your smartphone.