Command line Export odt/docx to epub/mobi format (LibreOffice 4.2 with Writer2XHTML extension) possible ?

Hi,
It is grate work to convert Docx/Odt to epub conversion. It was work nice in manual convert method(i.e Export-> Select format ->*) But I tried command line conversion I didn’t got any output I am missing anything?

Kindly correct me …Thanks for advance

My command : libreoffice --headless --convert-to epub test.odt

Hi,
Any Update?

I am also very interested in performing command line batch processing. Specifically I want to do the following:
Export → Writer2xhtml (I have the extension installed) → strict xhtml output

Like Alex, I can do this manually using the export command in Writer.
How do I successfully do it via the command line?