That is getting harder and harder by the year. Both Apple and the music companies go out of their way to make it incredibly difficult to manage my library.
It took two days and third-party tools to move my library from one iPhone to another. In the end I had to resort to manually copying down the name of every single track on my current phone to make sure it gets moved over onto the other phone. This is because the tools couldn't get everything. Getting all the metadata over still hasn't been 100% completed.
The problem is that I don't have a static, well-defined music taste. It changes all the freaking time. My music library needs to be able to keep up with what I want out of it. As it's virtually impossible to easily get tracks in and out of an iPhone, the single source of truth for my music library has become the tracks on the phone itself.
If I don't take painstaking care to ensure that every last file is moved, then some tracks which I really really love to hear, that I can listen to on repeat for hours, can completely fall off my radar and I won't hear them again for months / years.
Managing music files manually is something I absolutely must have. But there's nothing those goddamn assholes want more than to push me onto their shit fucking subscription services where my music life becomes accountable to their greedy whims.