applylicensing

Applies licensing to a component.

To apply licensing to a component from the CLI, use the following syntax:

        
          gwebcli.exe applylicensing -c=<relative path to the component file> --ln=<license feature name> --lv=<version>
      

For example:

        
          gwebcli.exe applylicensing -c="C:\Desktop\Web Application Project\WebApp.gcomp\WebApp.gcomp" --ln="License" --lv="2" 
      
The following table lists the available arguments for this operation.
Argument Required Description Example
  • -c
  • --cpath
  • --compPath
Yes This path must point directly to the component to be licensed.
  • -c="C:\Desktop\Web Application Project\WebApp.gcomp\WebApp.gcomp"
  • --cpath="C:\Desktop\Web Application Project\WebApp.gcomp\WebApp.gcomp"
  • --compPath="C:\Desktop\Web Application Project\WebApp.gcomp\WebApp.gcomp"
  • --ln
  • --licenseFeatureName=VALUE
Yes Specifies the component license in the corresponding license file (.lc).
  • --ln="License"
  • --licenseFeatureName="License"
  • --lv
  • --licenseVersion=VALUE
Yes Specifies the version of the license in the license file (.lc) that corresponds to the component.
  • --lv="2"
  • --licenseVersion="2"
  • --dp
  • --dontProtectFiles
No Specifies that we do not want to protect the source files under a component when we license it. By default, all the source files are protected when licensed.