dita-command-arguments.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2016"><meta name="DC.rights.owner" content="(C) Copyright 2016"><meta name="DC.Type" content="reference"><meta name="description" content="The dita command takes mandatory arguments to process DITA content, manage plug-ins, or print information about the command. Options can be used to modify the command behavior or specify additional configuration parameters."><meta name="DC.subject" content="dita command, syntax"><meta name="keywords" content="dita command, syntax"><meta name="DC.Relation" scheme="URI" content="../parameters/index.html"><meta name="DC.Relation" scheme="URI" content="../user-guide/build-using-dita-command.html"><meta name="DC.Relation" scheme="URI" content="../parameters/parameters_intro.html"><meta name="DC.Relation" scheme="URI" content="../parameters/internal-ant-properties.html"><meta name="DC.Relation" scheme="URI" content="../user-guide/build-using-dita-properties-file.html"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="dita-command-properties"><meta name="DC.Language" content="en"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>Arguments and options for the dita command</title></head><body id="dita-command-properties"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 2.3</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../getting-started/index.html">Getting Started</a></li><li><a href="../user-guide/index.html">User Guide</a></li><li><a href="../parameters/index.html">Parameter Reference</a><ul><li class="active"><a href="../parameters/dita-command-arguments.html">DITA command arguments</a></li><li><a href="../parameters/parameters_intro.html">DITA-OT parameters</a></li><li><a href="../parameters/configuration-properties.html">Configuration properties</a></li></ul></li><li><a href="../dev_ref/index.html">Developer Reference</a></li><li><a href="../user-guide/dita-and-dita-ot-resources.html">DITA Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1">Arguments and options for the <span class="keyword cmdname">dita</span> command</h1>
  8. <div class="body refbody"><p class="shortdesc">The <span class="keyword cmdname">dita</span> command takes mandatory arguments to process DITA content, manage plug-ins, or
  9. print information about the command. Options can be used to modify the command behavior or specify additional
  10. configuration parameters.</p>
  11. <section class="section"><h2 class="title sectiontitle">Usage</h2>
  12. <div style="display: block; border: 1 black solid; padding: 2pt; color: maroon; margin-bottom: 6pt;">
  13. <div><a name=""></a>
  14. <blockquote>
  15. <kbd><b>dita</b></kbd>
  16. <kbd><b>-i</b></kbd>
  17. <var>file</var>
  18. <kbd><b>-f</b></kbd>
  19. <var>name</var>
  20. [
  21. <var>options</var>
  22. ]
  23. </blockquote>
  24. </div>
  25. <div><a name=""></a>
  26. <blockquote>
  27. <kbd><b>dita</b></kbd>
  28. <kbd><b>-install</b></kbd>
  29. [ {
  30. <var>filename</var>
  31. <var> | URL</var>
  32. } ]
  33. </blockquote>
  34. </div>
  35. <div><a name=""></a>
  36. <blockquote>
  37. <kbd><b>dita</b></kbd>
  38. <kbd><b>-uninstall</b></kbd>
  39. <var>id</var>
  40. </blockquote>
  41. </div>
  42. <div><a name=""></a>
  43. <blockquote>
  44. <kbd><b>dita</b></kbd>
  45. <kbd><b>-help</b></kbd>
  46. </blockquote>
  47. </div>
  48. <div><a name=""></a>
  49. <blockquote>
  50. <kbd><b>dita</b></kbd>
  51. <kbd><b>-version</b></kbd>
  52. </blockquote>
  53. </div>
  54. </div>
  55. </section>
  56. <section class="section"><h2 class="title sectiontitle">Arguments</h2>
  57. <dl class="dl parml">
  58. <dt class="dt pt dlterm"><span class="keyword parmname">-i</span>, <span class="keyword parmname">-input</span>
  59. <var class="keyword varname">file</var></dt>
  60. <dd class="dd pd" id="dita-command-properties__args.input.desc">Specifies the master file for your documentation project. Typically this is a DITA
  61. map, however it also can be a DITA topic if you want to transform a single DITA file. The path can be
  62. absolute, relative to <span class="keyword parmname">args.input.dir</span>, or relative to the current directory if
  63. <span class="keyword parmname">args.input.dir</span> is not defined.</dd>
  64. <dt class="dt pt dlterm"><span class="keyword parmname">-f</span>, <span class="keyword parmname">-format</span>
  65. <var class="keyword varname">name</var></dt>
  66. <dd class="dd pd">Specifies the output format (transformation type).</dd>
  67. <dt class="dt pt dlterm"><span class="keyword parmname">-install</span>
  68. <var class="keyword varname">filename</var></dt>
  69. <dt class="dt pt dlterm"><span class="keyword parmname">-install</span>
  70. <var class="keyword varname">URL</var></dt>
  71. <dd class="dd pd">Install a single plug-in from a local ZIP file or from a URL.</dd>
  72. <dt class="dt pt dlterm"><span class="keyword parmname">-install</span></dt>
  73. <dd class="dd pd"><span class="ph">If no <var class="keyword varname">filename</var> or <var class="keyword varname">URL</var> argument is
  74. provided, the installation process reloads plug-ins from the <span class="ph filepath">plugins</span> directory.
  75. This approach can be used to install multiple plug-ins at once, or install any individual plug-ins
  76. you have already copied to the <span class="ph filepath">plugins</span> directory.</span></dd>
  77. <dt class="dt pt dlterm"><span class="keyword parmname">-uninstall</span>
  78. <var class="keyword varname">id</var></dt>
  79. <dd class="dd pd">Uninstall a plug-in with the specified ID.</dd>
  80. <dt class="dt pt dlterm"><span class="keyword parmname">-h</span>, <span class="keyword parmname">-help</span></dt>
  81. <dd class="dd pd">Print command usage help.</dd>
  82. <dt class="dt pt dlterm"><span class="keyword parmname">-version</span></dt>
  83. <dd class="dd pd">Print version information and exit.</dd>
  84. </dl>
  85. </section>
  86. <section class="section"><h2 class="title sectiontitle">Options</h2>
  87. <dl class="dl parml" id="dita-command-properties__dita_build_options">
  88. <dt class="dt pt dlterm"><span class="keyword parmname">-o</span>, <span class="keyword parmname">-output</span>
  89. <var class="keyword varname">dir</var></dt>
  90. <dd class="dd pd" id="dita-command-properties__output.dir.desc">Specifies the path of the output directory; the path can be
  91. absolute or relative to the current directory. By default, the output is written to the
  92. <span class="ph filepath">out</span> subdirectory of the current directory.</dd>
  93. <dt class="dt pt dlterm"><span class="keyword parmname">-filter</span>
  94. <var class="keyword varname">file</var></dt>
  95. <dd class="dd pd">Specifies a filter file to be used to include, exclude, or flag content.</dd>
  96. <dt class="dt pt dlterm"><span class="keyword parmname">-t</span>, <span class="keyword parmname">-temp</span>
  97. <var class="keyword varname">dir</var></dt>
  98. <dd class="dd pd">Specifies the location of the temporary directory.</dd>
  99. <dt class="dt pt dlterm"><span class="keyword parmname">-v</span>, <span class="keyword parmname">-verbose</span></dt>
  100. <dd class="dd pd">Verbose logging.</dd>
  101. <dt class="dt pt dlterm"><span class="keyword parmname">-d</span>, <span class="keyword parmname">-debug</span></dt>
  102. <dd class="dd pd">Debug logging.</dd>
  103. <dt class="dt pt dlterm"><span class="keyword parmname">-l</span>, <span class="keyword parmname">-logfile</span>
  104. <var class="keyword varname">file</var></dt>
  105. <dd class="dd pd">Write logging messages to a file.</dd>
  106. <dt class="dt pt dlterm"><span class="keyword parmname">-D</span><var class="keyword varname">parameter</var>=<var class="keyword varname">value</var></dt>
  107. <dd class="dd pd">Specify a value for a DITA-OT or Ant build parameter. <p class="p">Parameters not implemented by
  108. the specified transformation type or referenced in a <span class="ph filepath">.properties</span>
  109. file are ignored.</p><div class="note tip note_tip"><span class="note__title tiptitle">Tip:</span> If you are building in different environments where the location of the input
  110. files is not consistent, set <span class="keyword option">args.input.dir</span> with the <span class="keyword cmdname">dita</span> command and
  111. reference its value with <code class="ph codeph">${args.input.dir}</code> in your <span class="ph filepath">.properties</span>
  112. file.</div></dd>
  113. <dt class="dt pt dlterm"><span class="keyword parmname">-propertyfile</span>
  114. <var class="keyword varname">file</var></dt>
  115. <dd class="dd pd">Use build parameters defined in the referenced <span class="ph filepath">.properties</span> file.
  116. <p class="p">Build parameters specified on the command line override those set in the
  117. <span class="ph filepath">.properties</span> file.</p></dd>
  118. </dl>
  119. </section>
  120. </div>
  121. <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../parameters/index.html" title="The Parameter Reference is designed to help users to locate information easily and quickly. It includes documentation for dita command arguments and options, DITA-OT parameters, and configuration properties.">DITA Open Toolkit Parameter Reference</a></div></div><div class="linklist linklist relinfo reltasks"><strong>Related tasks</strong><br><div><a class="link" href="../user-guide/build-using-dita-command.html" title="You can generate output using the DITA Open Toolkit dita command-line tool. Build parameters can be specified on the command line or with .properties files.">Building output using the dita command</a></div><div><a class="link" href="../user-guide/build-using-dita-properties-file.html" title="Usually, DITA builds require setting a number of parameters that do not change frequently. You can reference a set of build parameters defined in a .properties file when building output with the dita command. If needed, you can override any parameter by specifying it explicitly as an argument to the dita command.">Setting build parameters with .properties files</a></div></div><div class="linklist linklist relinfo relref"><strong>Related reference</strong><br><div><a class="link" href="../parameters/parameters_intro.html" title="Certain parameters apply to all DITA-OT transformations. Other parameters are common to the HTML-based transformations. Some parameters apply only to specific transformation types. These parameters can be passed as options to the dita command using the -Dparameter-name=value syntax or included in build scripts as Ant properties.">DITA-OT parameters</a></div><div><a class="link" href="../parameters/internal-ant-properties.html" title="Reference list of Ant properties used by DITA-OT internally.">Internal Ant properties</a></div></div></nav></article></main></body></html>