One possible approach is to install
unoconv
(if not already installed) and
unoconv file.odt
Please see man unoconv for details
unoconv is a command line utility that can convert any file format that LibreOffice can import, to any file format that LibreOffice is capable of exporting. unoconv uses the LibreOffice’s UNO bindings for non-interactive conversion....
In some platforms it is also necessary to install
libreoffice-headless