How to convert .tm flle to .pdf with command line?

您们好,我如何在linux 上,使用命令行将.tm 文件导出到pdf 文件?

The automatic translation of the post body told me that it is the same as the post title, so let’s see if this is the answer you are looking for:

texmacs -headless -c input-file.tm output-file.pdf

where you steer the format of the output through the filename extension.
I did not find it in the manual, but there is a discussion at Is it possible to convert documents from the command-line without opening texmacs?

The headless options works with TeXmacs 2.1.4
The order of the options mattered in the test I did: first -headless, then -c