Installation & Licensing Center
HOW TO - Enable Shared Web Licensing using CLI - Linux
Authored by Vincent DiGiovanni
November 11th, 2025
366 views
0 likes
KB3573544
Description
This guide provides step-by-step instructions to enable Ansys Shared Web Licensing in a headless or command-line (CLI) only Linux environment, without a graphical user interface.
This guide requires access to the Ansys ID Portal.
Solution
Before connecting to the Linux machine, please obtain an access token from the Ansys ID Portal
- In the Ansys ID Portal, navigate to “Users”, locate the desired user, and click “(⋯) > Manage Tokens”

- Click “Create Token”, enter the desired token name, expiration date, and access scope, then click "Create"


- Please save this token by either copying the string or downloading the “.json” file

- Log in to the Linux machine
To enable Shared Web Licensing, enter the command below
Unless otherwise specified during installation, the Ansys Licensing Settings utility is located at: /ansys_inc/v2XX/licensingclient/linx64/LicensingSettings
Make sure to replace “v2XX” with the correct version directory. For example, 2025 R2 is “v252”
Note: When specifying the mode, use “installation” = for all users, or "user" = current user account. Do not include the “[” or “]”.LicensingSettings web shared enable --mode [installation or user]
- Activate Shared Web Licensing by using the .json file or token string from Step #3. See both commands below:
orLicensingSettings account login --input "path/to/file.json"LicensingSettings account login --token "PASTE TOKEN STRING HERE"
- (Optional) Set Shared Web Licensing as the preferred licensing service by entering the command below:
LicensingSettings preferences service set --input "Web products","FlexNet Publisher","Elastic web" --mode [installation or user]