optimize-project

Improves the load time and performance of your projects by loading, compiling, and saving project files during the build process.

Similar to mass compiling in LabVIEW, the optimize-project command:
  • Verifies the existence of subVIs and links them to the main VI.
  • Updates files to the current G Web Development Software version.
  • Reports corrupt files which can prevent your project from loading correctly.
To optimize an example or tutorial from the CLI, use the following syntax:
gwebcli.exe optimize-project -p=<relative or absolute location of the project> -t=<time in seconds> -s=<name of target to exclude>
For example:
gwebcli.exe optimize-project -p="C:\G Web Projects\Project.gwebproject" -t=60 -s="Default Web Server"
Argument Required Description Example
  • -p
  • --path=VALUE
Yes Specifies the relative or absolute path of the project to optimize.
Note You can reference multiple paths in a comma-separated list.
  • -p="C:\G Web Projects\Project.gwebproject"
  • --path=".\Add\Add.gwebproject, .\Subtract\Subtract.gwebproject"
  • -s
  • --skipTargets=VALUE
No Specifies which targets to exclude in the optimization process.
  • -s="Default Web Server"
  • --skipTarget="Default Web Server"
  • -t
  • --timeout=VALUE
No Specifies the amount of time in seconds before the operation exits.
  • -t=10
  • --timeout=10