Activating or Deactivating Flare Desktop Using the Command Line

Flare Desktop allows you to activate (or deactivate) the application from the command line. This can be helpful for companies using imaged machines and are not able to activate Flare Desktop from the user interface.

Important This feature is activated only for customers with Enterprise licenses, but any key types can be deactivated using the command line.

How to Use Command Line Activation

  1. Open a text editor, such as Notepad++, create a new file named "license.json." Save the file at the root level of the Flare.app folder in Program Files where you installed Flare Desktop.

    Example If you installed Flare Desktop at C:\Program Files (this is just an example; your files might be installed in a different folder, such as Program Files x86), you would save the JSON file like this:

    C:\Program Files\MadCap Software\MadCap Flare 22\Flare.app\license.json

  2. Within the JSON file, enter the following. Have your IT department help you complete the file's parameters if necessary.

    Parameters

    • EmailAddress (Required) The email address to use with activation.

    • FirstName (Optional) The first name of the person activating.

    • LastName (Optional) The last name of the person activating

    • UseProxy (Optional) A true or false flag to indicate if you're using proxy settings.

    • Proxy (Optional) Proxy settings to use, if needed, to access the Internet. All settings are required if the proxy is set.

      • Address The proxy address.

      • Port The proxy port.

      • UseAuthentication A true or false flag to indicate if you are using authentication with proxy.

      • Username The user account for proxy.

      • Password The user password for proxy.

    • Products (Required) The purchased license key, which must be an enterprise floating key. You should have this key in the email that you received from MadCap Software when you purchased Flare Desktop, ServiceNow, Salesforce, or Zendesk.

    Format

    Copy
    {
        "EmailAddress": "email@me.com", //required
        "FirstName": "MadCap", //optional
        "LastName": "Simon", //optional
        "UseProxy": false, //optional
        "Proxy": { //optional
            "Address": "",
            "Port": 0,
            "UseAuthentication": false,
            "Username": "",
            "Password": ""
            },    
        "Products": { //required: include at least one product entry
            "MadCap_Flare": { "LicenseKey": "xxxx-xxxx-xxxx-ec712-448b8-9e11b-a18b3-4ceda" },
            "MadCap_ServiceNow": { "LicenseKey": "xxxx-xxxx-xxxx-ec712-448b8-9e11b-a18b3-4cedb" },
            "MadCap_Salesforce": { "LicenseKey": "xxxx-xxxx-xxxx-ec712-448b8-9e11b-a18b3-4cedc" },
            "MadCap_Zendesk": { "LicenseKey": "xxxx-xxxx-xxxx-ec712-448b8-9e11b-a18b3-4cedd"}
        }
    }
  3. After the completed JSON file is saved to the Flare.app folder, open the command prompt on your computer.

  4. Navigate to the location where the JSON file is saved.

    Example Type the following in the command prompt and press ENTER:

    cd\Program Files\MadCap Software\MadCap Flare 22\Flare.app

  5. Type any of the following commands and press ENTER:

    • flare -activate

    • flare -activate -connector -<salesforce | zendesk | servicenow>

    • madbuild -activate

    • madbuild -activate -connector -<salesforce | zendesk | servicenow>

    • flare -deactivate

    • flare -deactivate -connector -<salesforce | zendesk | servicenow>

    • madbuild -deactivate

    • madbuild -deactivate -connector -<salesforce | zendesk | servicenow>

    In other words, you can run an activate or deactivate command. You can do this for the Flare Desktop application (e.g., flare -activate) if you tend to open Flare Desktop to work in it. If you never open Flare Desktop, but only need to build or publish output using the command line, you can use the madbuild command (e.g., madbuild -activate).

    Example If you want to activate Flare Desktop to work in it:

    Command line activate for Flare

What’s Noteworthy?

Note The format below is supported by Flare 2026 r2 and previous versions, and is a viable option if you are not activating MadCap Connect for Salesforce, ServiceNow, or Zendesk.

Copy
{
"LicenseKey": "xxxx-xxxx-xxxx-ec712-448b8-9e11b-a18b3-4cedb", //required
"EmailAddress": "email@me.com", //required
"FirstName": "MadCap", //optional
"LastName": "Simon", //optional
"UseProxy": false, //optional
"Proxy": {
"Address": "",
"Port": 0,
"UseAuthentication": false,
"Username": "",
"Password": ""
//optional
}
}