build-application

Builds the specified application into a binary.

To build an application from the CLI, use the following syntax:

        
          gwebcli.exe build-application -p <relative or absolute location of the project> -n <name of the application> -t <Web Server target containing the application> -s
      

For example:

        
          gwebcli.exe build-application -p "C:\G Web Projects\Project.gwebproject" -n "Application.gcomp" -t "Default Web Server" -s
      
The following table lists the available arguments for this operation.
Argument Required Description Example
  • -p
  • --path=VALUE
Yes Specifies the relative or absolute path of the project containing the application to build.
  • -p "C:\G Web Projects\Project.gwebproject"
  • --path="C:\G Web Projects\Project.gwebproject"
  • -n
  • --name=VALUE
Yes Specifies the name of the application to build.
  • -n "Application.gcomp"
  • --name="Application.gcomp"
  • -t
  • --target=VALUE
This argument is required if the project contains SystemDesigner targets. The target that contains the application to build.

This option is only required if the project contains SystemDesigner targets.

  • -t "Default Web Server"
  • --target="Default Web Server"
  • -s
  • --save
No Saves the application and project file after building.

Use this argument when you select Auto-increment version on build in the application.