I was switching to a new computer today and wanted to install all the flatpaks on my old one, without having to do anything manually of course
It turned out to be pretty easy, but I didn't find any obvious guide on the internet, so I figured I would document my solution
At first I tried the command:
flatpak list --app --columns=application > installed_flatpaks.txt
This will give you a list of only the application ID's, but each will be on a newline
The issue is that each ID is on its own line. To fix this, I added a second part to the command:
flatpak list --app --columns=application | xargs echo -n > installed_flatpaks.txt