Is there any way to detect outside the editor if map needs lighting rebuild

Hey everyone,

Is it possible to detect from command line if the lighting on the map is outdated so that I can run rebuild automatically?
I’m thinking about running this check after commit to ensure light maps are always built properly. Or at least skipping proper maps when performing full lighting rebuild.

Right now I’m looking into writing my own commandlet (haven’t found an appropriate existing one) but it doesn’t look like a trivial solution. Is there anything I might be missing? Maybe some existing in-box solution?

Currently I’m on UE4.21, but I would like to hear if the solution is provided for any of the versions.

Thank you in advance!