Creating a license for an offline environment
Using the Command Line Tool you can create a license for a machine in a restricted environment, as long as you have means to transfer a single text file.
As the prerequisite, you also need a machine with Tower and its Command Line Tool installed, which can reach the internet.
With the CLI Tool, you can gather the anonymous identification information for your install and transmit this information to Tower's licensing server.
Keep your CLI tool up-to-date
Before proceeding, please make sure you have the latest version of the CLI tool installed in Tower's Preferences -> Integration.
A Sample Workflow
We have two machines: Charly's PC is connected to the Internet, Richard's PC is in a restricted environment. Both of them have Tower and the
gittower.exe CLI Tool installed.
On Richard's machine, execute this command:
$ gittower.exe license -i > %USERPROFILE%/Desktop/richard-info.plist
This saves anonymous identification information about Richard's install in a file on the desktop.
richard-info.plist to Charly's Mac.
On Charly's machine, you can now receive either a Trial or a License file for Richard.
For this example, we place the file
richard-info.plist on Charly's Desktop.
To receive a trial license, execute this command:
$ gittower.exe license -t %USERPROFILE%/Desktop/richard-info.plist > %USERPROFILE%/Desktop/richard-trial.plist
To activate a license for Richard, prepare your license information.
You need both your license key (starting with
TOWR), referenced as
LICENSE_KEY and your registered email address, referenced as
$ gittower.exe license -a %USERPROFILE%/Desktop/richard-info.plist --code "LICENSE_KEY" --email "EMAIL" > %USERPROFILE%/Desktop/richard-license.plist # an example could look like this: $ gittower.exe license -a %USERPROFILE%/Desktop/richard-info.plist --code "TO2M-DRAH-CIRL-SYEK" --email "email@example.com" > %USERPROFILE%/Desktop/richard-license.plist
Please make sure to enclose both the license key and the email address in
richard-license.plist back to Richard's Desktop.
To finish the process, install the license with this command and start Tower afterward:
$ gittower.exe license --install %USERPROFILE%/Desktop/richard-license.plist
Should hardware changes occur, these three steps have to be repeated as they'll change Richard's anonymous identification information.