LyX commands documentation can be found in LyX Help menu.
.TP 6
.BI \-c " command"
-send a single \fIcommand\fR, print LyX information to standard output and exit.
+send a single \fIcommand\fR, print LyX information to standard output and exit. LYXCMD prefix is needed in the given command.
.TP
.BI \-g " file line"
this is simply a wrapper for the command 'server\-goto\-file\-row \fIfile\fR \fIline\fR'. It is used by the DVI previewer to elicit inverse DVI search.