I have the same question.
According to
https://github.com/spesmilo/electrum/issues/8521the command to do this is
./run_electrum -o lightning_history
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.