Just did a clean install of Mojave (👋 corporate image) and using Homebrew, Cask and MASCLI, I was able to dump a list and then reinstall nearly every application I use, in three lines.

brew install $(<brew.txt) brew cask install $(<cask.txt) mas install $(<mas.txt)