distribution

Builds a distribution(.lvdist) file.

To build a distribution from the CLI, use the following syntax:

        
          gwebcli.exe distribution -p=<relative or absolute path of the project> --dn=<name of the .lvdist file>
      

For example:

        
          gwebcli.exe distribution -p="C:\G Web Projects\Project.gwebproject" --dn="Application.lvdist" 
      
The following table lists the available arguments for this operation.
Argument Required Description Example
  • -p
  • --ppath=VALUE
Yes Specifies the source path. This is a path to the .gwebproject containing the .lvdist to build.
  • -p="C:\G Web Projects\Project.gwebproject"
  • --ppath="C:\G Web Projects\Project.gwebproject"
  • --dn
  • --distributionDocumentName=VALUE
Yes Specifies the name of the distribution document to build.
  • -dn="Application.lvdist"
  • --distributionDocumentName="Application.lvdist"
  • -d
  • --outputDirectory=VALUE
No Specifies a custom output directory for the distribution.
--version=VALUE No Specifies the version for the distribution.

The distribution build version does not automatically increment when you use this parameter.

--addonDirectory=VALUE No Specifies the custom addon installation location. By default, it is set to the "Addons" directory in the .exe directory.
--autoAddDependencies No Specifies whether to automatically calculate and add dependencies.
--retainIntermediaryOutputDirectory=VALUE No Specifies whether to retain intermediary output directory upon building a package.
--save No Specifies whether to save the distribution when finished. The default value is False.
  • --do
  • --distributionOutputType=VALUE
No Specifies the output type of the distribution to build. The default is the output type set in the distribution.

Supported output types: nipackage and nipackageinstaller.