# Command line mode

**SpecXpert** also works in command-line mode.

`specxpert -?` shows the available command-line parameters.

<table>
  <tbody>
    <tr>
      <td><p>-plant:exampleplant</p></td>
      <td><ul>
      <li>Smart 3D plant name.</li>
      <li>Alias: -p</li>
      <li>Required.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-permgroup:examplepermgr</p></td>
      <td><ul>
      <li>Permission group for <code>SpecTester</code>.</li>
      <li>Alias: -pg</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-mode:mode</p></td>
      <td><ul>
      <li>Execution modes:<br>ST  - <code>SpecTester</code><br>BLG - <code>BulkloadGenerator</code><br>CT  - <code>CompareTool</code></li>
      <li>Alias: -m</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-s3dversion:version</p></td>
      <td><ul>
      <li>Valid values for <code>CompareTool</code> templates:<br>2009.1<br>2011 SP1<br>2011 R1<br>2014<br>2014 R1<br>2016<br>2018<br>2019<br>V13<br>V13.1</li>
      <li>Alias: -v</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-output:outputpath</p></td>
      <td><ul>
      <li>Path of the result or report for <code>SpecTester</code>,
      <code>BulkloadGenerator</code>, or <code>CompareTool</code>.</li>
      <li>Alias: -out</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-current:currentpath</p></td>
      <td><ul>
      <li>Directory containing the current data for
      <code>CompareTool</code>.</li>
      <li>Alias: -curr</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-requested:requestedpath</p></td>
      <td><ul>
      <li>Directory containing the requested data for
      <code>CompareTool</code>.</li>
      <li>Alias: -requ</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-addreq:filename.xls</p></td>
      <td><ul>
      <li>Additional requirements for <code>SpecTester</code>.</li>
      <li>Valid sheet names in <code>filename.xls</code>:<br>Excluded<br>UserDefinedDesignPTPipeRun</li>
      <li>Alias: -ar (old: -excl and -exclusions)</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-config:filename.ini</p></td>
      <td><ul>
      <li>Configuration file containing all settings
      except parameters passed on the command line.</li>
      <li>Alias: -cfg</li>
      <li>If not defined, the configuration file of the
      plant is used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-continue</p></td>
      <td><ul>
      <li>Continue the last run if <code>SpecTester</code> was not
      completed.</li>
      <li>Alias: -cont</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-sheet:sheetcategory</p></td>
      <td><ul>
      <li>Sheet categories for <code>BulkloadGenerator</code> or
      <code>CompareTool</code>. This option can be used more
      than once on the command line.</li>
      <li>Valid values:<br>SP - Pipe spec with parts<br>CL - Codelists<br>GD - Generic data<br>PO - Plant options<br>PR - Plant rules<br>ID - Insulation data<br>PB - Pipe bending data<br>IS - Instruments and specialties</li>
      <li>Alias: -sh</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-spec:&quot;name|2 in|6 in&quot;</p></td>
      <td><ul>
      <li>Specification name for <code>SpecTester</code> and
      <code>BulkloadGenerator</code>. NPDs for <code>SpecTester</code>,
      if defined. This option can be used more than
      once on the command line.</li>
      <li>Alias: -s</li>
      <li>You can also specify a text file containing a
      list of specifications by using the <code>.lst</code>
      file extension.</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-oneworkbook:true</p></td>
      <td><ul>
      <li>Export specification data in one or more
      workbooks.</li>
      <li>Alias: -s1w</li>
      <li>Valid values: true or false</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
    <tr>
      <td><p>-deleteemptysheets:true</p></td>
      <td><ul>
      <li>If no record exists, the sheet is deleted.</li>
      <li>Alias: -de</li>
      <li>Valid values: true or false</li>
      <li>If not defined, last used.</li>
      <li>Optional.</li>
      </ul></td>
    </tr>
  </tbody>
</table>