Building output using the command-line tool

If you are unfamiliar with Ant, you can invoke the DITA Open Toolkit (DITA-OT) and build output from the command-line tool.


  1. Run the startcmd file that is applicable for your operating system.
    The startcmd.bat and files are in the directory where you installed the DITA-OT.
  2. From the command prompt, issue the following command:
    java -jar lib/dost.jar /i:input-file /transtype:transformation-type /parameter-name:value
    • install-dir is the DITA-OT installation directory path.
    • input-file is the DITA map or DITA file that you want to process.
    • transformation-type is the transformation type.
    • parameter-name is the name of an optional parameter.
    • value is an applicable value for the optional parameter.
    • output-dir is the output directory path for generated output.
    If you do not specify an output directory, the DITA-OT writes the output to the install-dir/out directory.


The following command generates HTML5 output for the sequence.ditamap file and specifies the output is written to the test directory
java -jar lib/dost.jar /i:samples/sequence.ditamap /outdir:test /transtype:html5