How to create .odt file using terminal on Ubuntu 20.04?

The command you use is for opening a file that already exists. If there is no file with that name, you get the error saying that the file does not exist.

To open libreoffice writer with a new empty text, do libreoffice --writer and give the file name when saving.