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

Home >  MobileTogether 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 MobileTogether 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 MobileTogether 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.




MobileTogetherServer assignlicense [options] FILE


Click to expand/collapseCasing and slashes on the command line

MobileTogetherServer on Windows

mobiletogetherserver on Unix (Linux, Mac)


* Note that lowercase (mobiletogetherserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (MobileTogetherServer) 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.

--h, --help

Displays information about the command


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:


mobiletogetherserver assignlicense C:\MobileTogether Server12345.altova_licenses

mobiletogetherserver assignlicense --test-only=true C:\MobileTogether Server12345.altova_licenses


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

© 2019 Altova GmbH