[Tex/LaTex] Which commands does LyX run to generate PDF (pdflatex) and other export formats

lyxpdf

What commands should I run manually to repeat all the steps LyX makes to generate a final output (like pdflatex PDF) for a specific document? I need it for using in a report generator written in another language.

I've looked into "LaTeX Log", but is seems like having outputs of commands, not commands itself.

Best Answer

Edit the LyX file directly. It is a text file. Then run

lyx -e pdf2 yourfile.lyx

to produce a PDF file using pdflatex.