### 1.3.3. Command Line Options and Batch Mode

ACP can also be used on a command line level. The general usage of the ACP start script is:

    ACP.exe [options] [FILE]

The supported command line options are:

Long Form | Short Form | Description
--- | --- | ---
`--version` |  | Display the program’s version number and exit.
`--help` | `-h` | Display the program’s command line options and exit.

`--batch=`BATCH_MODE``

`-b `BATCH_MODE``

Run ACP in batch mode. In batch mode the program exits at the end of the script run.

0 - Batch mode disabled (default)
1 - Python UI batch mode is on
2 - GUI batch mode is on

`--debug` | `-d` | Enable debug output.
`--num-threads=`NUM_THREADS`` | `-t `NUM_THREADS`` | Number of threads to be used. 0 for max available threads.
`--logfile=`LOGFILE`` | `-o `LOGFILE`` | Specify file to be used for log messages.
`--mode=`MODE`` | `-m `MODE`` | Application starts up in the specified mode (‘pre’, ‘shared’, or ‘post’).
`--workbench` | `-w` | Run ACP in Workbench mode.
`--port=`PORT`` | `-p `PORT`` | Specify port number for remote access server.
`[FILE]` | `[FILE]` | If the specified file is an ACP project, it is opened. If it is a Python script it is executed.

Release 18.2 - © ANSYS, Inc. All rights reserved.