How to generate documents from the command line with the DITA-OT command-line tool.
The DITA Open Toolkit provides a command-line tool to run document conversions. However, the command-line tool is a wrapper for the Ant interface, so you still must install Ant. In addition, only a subset of the Ant properties are supported by the command-line tool
startcmd.bat
java -jar lib/dost.jar [arguments]
Three arguments are required:
For example, the following command instructs DITA-OT to build the samples/sequence.ditamap as a PDF in the out directory:
java -jar lib/dost.jar /i:samples/sequence.ditamap /outdir:out /transtype:pdf