## 2.6. Starting ANSYS CFX Components from the Command Line

The components of ANSYS CFX can all be started from the command line. A command consists of the path to the command, the command name, and various arguments, many of which are optional.

For example, to start up CFX-Pre and play a session file named StaticMixer.pre, open a terminal window and enter the command:

`<CFXROOT>/bin/cfx5pre -play StaticMixer.pre`

where `<CFXROOT>` is the path to your installation of CFX, for example C:\Program Files\ANSYS Inc\V182\CFX on Windows.

The following table lists some of the commands you can use to start ANSYS CFX components:

Component | Command | Arguments
--- | --- | ---
ANSYS CFX Launcher | `cfx5` or `cfx5launch` | See Starting the ANSYS CFX Launcher.
CFX-Pre | `cfx5pre` | See Starting CFX-Pre from the Command Line in the CFX-Pre User's Guide.
CFX-Solver Manager | `cfx5solve` | See Starting the CFX-Solver from the Command Line in the CFX-Solver Manager User's Guide.
CFD-Post | `cfdpost` | See Starting CFD-Post from the Command Line in the CFD-Post User's Guide.

Tip:

- To display a full list of all the possible arguments and a short description for any command, type the command followed by `-help.` For example:

  `cfdpost -help`

- Typing the argument `-verbose` after a command launches the software specified and displays a summary of the currently set environment variables.

- ANSYS CFX Launcher provides a command line with a preset path to the ANSYS CFX executables. From the launcher, select Tools > Command Line. For details, see Command Line.

- You can append the path to the ANSYS CFX executables to your Windows PATH.

  1. Right-click My Computer and select Properties.

  2. Click the Advanced tab.

  3. Click Environment Variables.

  4. In the System variables pane, select Path and click Edit.

  5. Append the path to the ANSYS CFX executables to the Variable value field. For example:

     `C:\Program Files\ANSYS Inc\v182\CFX\bin;`

  6. Click OK as required to set the new path and close the dialog boxes.

- You can append the path to the ANSYS CFX executables to your UNIX search path.

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