There are dozens of ways to export from LyX, hence some confusion the most basic is to select the correct format from the drop-down and 9 times out of 10 it will be
EITHER Luatex or simpler pdfLaTeX
HOWEVER you say you want to run in LaTeXmk and there is another choice for that
At the bottom of that really really long list there is a choice of MORE formats and options with yet another long list of Latex types so you can again pick pdfLaTeX and in the bottom box try adding the command options for LaTeXmk (good luck)

Update
As a result of comments It would appear your request for a command to transfer from LyX to LaTeXmk may best be done externally on the command line.
LyX does not show nor confirm any progress however it will convert LyX import to TeX export.
So to get a .tex file from .lyx you need to run a command that will pass its output to Latexmk
If using Windows from a command line you use a single & in a cmd file you need to use &&
@Marijn has suggested using
lyx --force-overwrite --export pdflatex document.lyx && Latexmk document.tex
beware the "force overwrite" is a loose cannon that could accidentally obliterate your master document (you always keep a back-up don't you?)
Note if you are on Linux there was a previous auto compiling system described here. In windows it should be possible for Latexmk to auto convert the lyx to tex then compile to pdf.
lyx --force-overwrite --export pdflatex document.lyxand therefore answers the question, the question in my comment says Go to File->Export->LyX Archive [...] then run another export - this time to LaTeX (pdflatex). This will create a .tex file, which also answers the question here, or should at least be sufficient for the OP to get started. – Marijn Jun 19 '19 at 16:03latexmkcommand second? Something likelyx --force-overwrite --export pdflatex document.lyx && latexmk document.tex. – Marijn Jun 19 '19 at 16:41lyx --verbose --force-overwrite --exportetc. might give some more feedback. – Marijn Jun 19 '19 at 16:44