Convert xlsx to csv using libreoffice in command line

To convert an xlsx file to csv in command line, you can use the following if you have libreoffice installed

libreoffice --headless --convert-to csv file.xlsx