Offline license activation

How to activate your Diffblue Cover license offline
Licensing Diffblue Cover in the offline mode detailed here 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.
Cover Plugin
Cover CLI
Licensing the Diffblue Cover Plugin for IntelliJ in offline mode is performed using Cover CLI.
  1. 2.
    Before entering a license key, completely exit all instances of the IntelliJ IDE. Note that closing the project window is not sufficient.
  2. 3.
    Follow the Cover CLI steps detailed in the tab above to activate your license in offline mode, using the Diffblue Cover CLI command dcover activate --offline
  3. 4.
    Restart the IntelliJ IDE.
  4. 5.
    You're now ready to write tests using Diffblue Cover Plugin.
Activating Diffblue Cover CLI offline:
  1. 2.
    Obtain your licence file and license key. To activate Diffblue Cover offline you will require your license file ls_activation.lic, along with your license key XXXX-XXXX-XXXX-XXXX. These can be obtained from:
  2. 3.
    Your Diffblue Cover welcome email received following license purchase
  3. 4.
    Your organization's internal file/app/license store
  4. 5.
    Or contact Diffblue Support for help finding this information
  5. 6.
    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:
  1. 4.
    Copy ls_activation.lic to the Diffblue offline license directory:
  2. 5.
    On Linux or macOS your home directory can be found at ~/.diffblue/offline/
  3. 6.
    On Windows your user home can be found at C:\Users\<username>\.diffblue\offline\
  4. 7.
    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
  1. 6.
    You're now ready to write tests using Diffblue Cover CLI.