assignlicense (Windows only) Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  DiffDog Server Command Line >

assignlicense (Windows only)

On execution, the assignlicense command uploads the license file specified by the FILE argument to the registered LicenseServer, and assigns the license to DiffDog Server on this machine. The FILE argument takes the filepath of the license file. The --test-only option allows you to upload to LicenseServer and validate the license, without assigning the license to DiffDog Server. For details about licensing, see the LicenseServer documentation (


Note:This command is supported only on Windows systems. It is not supported on Linux or Mac systems.




DiffDogServer assignlicense [options] FILE


Click to expand/collapseCasing and slashes on the command line

DiffDogServer on Windows

diffdogserver on Unix (Linux, Mac)


* Note that lowercase (diffdogserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (DiffDogServer) works only on Windows and Mac.

* Use forward slashes on Linux and Mac, backslashes on Windows.






The path to the license file





--t, --test-only

Values are true|false. If true, then the license file is uploaded to LicenseServer and validated, but not assigned. If the option is specified without a value, then it is set to a value of true.


Options are listed in their short forms (if available) and long forms. You can use one or two dashes for both short and long forms. An option that takes a value is written like this: --option=value.


Note:On Windows systems: Avoid using the end backslash and closing quote on the command line \", for example, as in: "C:\My directory\". These two characters are interpreted by the command line parser as a literal double-quotation mark. Use the double backslash \\ if spaces occur in the command line and you need the quotes (for example: "C:\My Directory\\"). Alternatively, try to avoid using spaces and, therefore, quotes at all.



Examples of the assignlicense command:


diffdogserver assignlicense C:\DiffDog Server12345.altova_licenses

diffdogserver assignlicense --test-only=true C:\DiffDog Server12345.altova_licenses


The first command above uploads the specified license to LicenseServer and assigns it to DiffDog Server.
The second command uploads the specified license to LicenseServer and validates it, without assigning it to DiffDog Server.

© 2019 Altova GmbH