4.5. Selecting an Ansys Product via the Command Line

Your site may have licenses for one or many ANSYS, Inc. products and product combinations.

On both Windows and Linux systems, you can start any licensed product via the -p option when issuing the Mechanical APDL execution command:

ansys252 -p productvar

where productvar is the Ansys 2025 R2 product that you want to run (designated via a unique product variable).

Example 4.1: Starting the Ansys Mechanical Enterprise Product

ansys252 -p ansys

Starting a Regularly Used Product Automatically

To avoid typing the -p option and product variable for a frequently used product, set the ANSYS252_PRODUCT environment variable:

  • Linux systems: Set the ANSYS252_PRODUCT in your .cshrc (or similar) file:

    setenv ANSYS252_PRODUCT productvar
  • Windows systems: Set the ANSYS252_PRODUCT as a System Environment Variable and set the value to productvar. (To learn more about setting environment variables on Windows systems, refer to your operating system documentation.)

The product specified via the ANSYS252_PRODUCT environment variable starts automatically when the Mechanical APDL execution command is issued.

Overrides

Any profiles defined in the Mechanical APDL Launcher override the ANSYS252_PRODUCT environment variable.