-snip-
but I'm not sure how to do this using pre-compiled binaries (e.g. using electrum-4.x.x.exe in Windows) instead of using the source code.
Enable the console via "
View->Show Console", open the console and type in the command:
lightning_invoice()The result will be similar to the provided workaround but you'll have to manually copy and paste it to a '.txt' or '.json' file.
If you need a '.csv' export, I'm afraid that it cannot output in that format.