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