Offline license activation
Enterprise (Offline)
Licensing Diffblue Cover in the offline mode detailed in the document is available only when purchased with the Enterprise Edition offline option. To use Diffblue Cover in an offline environment, such as a high-security or air-gapped network, requires this Enterprise Edition offline option.
Otherwise Diffblue Cover requires a remote license check with the Diffblue licensing server each time it is used.
1. Activating Diffblue Cover IntelliJ Plugin Offline
Licensing the Diffblue Cover IntelliJ Plugin in offline mode is done via the Diffblue Cover CLI.
- Install the Diffblue Cover IntelliJ Plugin
- Before entering a license key completely exit all instances of the IntelliJ IDE. Closing the project window is not sufficient.
- Follow the steps below to activate your license in offline mode using the Diffblue Cover CLI command
dcover activate --offline
- Restart your IDE
- You are now ready to
Write Tests
using the Diffblue Cover IntelliJ Plugin in offline mode.
2. Activating Diffblue Cover CLI Offline
2.1. Install Diffblue Cover CLI
2.2. Obtain your licence file and license key
To activate Diffblue Cover offline you will require your license file ls_activation.lic
, along with you license key XXXX-XXXX-XXXX-XXXX
. These can be obtained from:
- Your Diffblue Cover welcome email received following license purchase
- Your organization’s internal file/app/license store
- Or contact Diffblue Support for help finding this information
2.3. Run dcover license
to prepare a directory for license installation:
➜ dcover license
12:55:23.365 INFO Diffblue Cover 2022.02.02
12:55:23.368 INFO There is no license linked to your product
This will create an offline
directory at:
<USER_HOME>/.diffblue/offline/
2.4. Copy ls_activation.lic
to the Diffblue offline license directory:
- On Linux or macOS your home directory can be found at
~/.diffblue/offline/
- On Windows your user home can be found at
C:\Users\<username>\.diffblue\offline\
2.5. Run dcover activate --offline <license key>
to install the offline license:
➜ dcover activate --offline XXXX-XXXX-XXXX-XXXX
15:48:35.064 INFO Found an offline license file at '<USER_HOME>/.diffblue/offline/ls_activation.lic'
15:48:35.494 INFO Successfully activated offline license