Building output using the <cmdname>dita</cmdname> command You can generate output using the dita command-line tool. Build parameters can be specified on the command line or with .properties files. macOSdita command Linuxdita command Windowsdita command dita commandusing The DITA-OT client is a command-line tool with no graphical user interface. To verify that your installation works correctly, you can build output using the sample files included in the distribution package. Open a terminal window by typing the following in the search bar:
  • On Linux and macOS, type Terminal.
  • On Windows, type Command Prompt.
At the command-line prompt, enter the following command: --input=input-file --format=format [options]

where:

Run from , the following command generates HTML5 output for the sequence.ditamap file:

--input=sequence.ditamap --format= DITA mapsdita command example

For example, from , run:

dita --input=sequence.ditamap --format= \ --output=output/sequence \ --args.input.dir= \ --propertyfile=properties/sequence-html5.properties

This builds sequence.ditamap to HTML5 output in output/sequence using the following additional parameters specified in the properties/sequence-html5.properties file:

DITA mapsdita command example

Most builds require you to specify more options than are described in this topic.

Usually, you will want to specify a set of reusable build parameters in a .properties file.