Command-line Options and Switches
Paquet Builder supports command-line options to automate tasks such as managing project files and compiling packages. These options allow you to bypass the graphical interface for efficiency or integration into automation workflows.
What is a switch?
Section titled “What is a switch?”A switch is a command-line parameter, often accompanied by a value, used to configure how Paquet Builder runs. Switches are specified with a forward slash /.
For example, /c is the switch that triggers compilation.
Launching Paquet Builder from the command line
Section titled “Launching Paquet Builder from the command line”You can specify a project file when launching Paquet Builder:
PBUILDER.EXE "C:\Projects\MyProject.pbpx"This opens the project file. Pressing the Compile button creates the package.
When a command-line switch is included, the splash screen is hidden and a taskbar window displays progress.
Supported switches
Section titled “Supported switches”| Switch | Description |
|---|---|
/c | Compile the specified project or directive file. |
/q | Exit Paquet Builder after compilation, regardless of success or failure (error messages are displayed). |
/s | Non-interactive mode: suppresses progress dialogs. Errors still prompt interaction. For true silent mode, use the console compiler. |
/log:"path" | Save the compilation log to an HTML file at the specified path. |
/outfolder:"path" | Override the output directory for the compiled package. |
/outfname:"name" | Specify a custom filename for the compiled package. |
/exetype:N | Set the target architecture: 0 = 32-bit, 1 = 64-bit, 2 = ARM64. |
/arcfile:"path" | Change the path of the external 7z archive file. |
/filelistupt | Force a live update of all file lists and components before compilation. |
Examples
Section titled “Examples”Compile the project silently and exit:
PBUILDER.EXE "C:\Projects\MyProject.pbpx" /c /q /sChange the output directory and save the log:
PBUILDER.EXE "C:\Projects\TestProject.pbpx" /c /log:"C:\Logs\BuildLog.html" /outfolder:"C:\Output"Build a 64-bit package, refresh file lists, and compile silently:
PBUILDER.EXE "C:\Projects\TestProject.pbpx" /exetype:1 /c /q /s /filelistuptBuild an ARM64 package, refresh file lists, and compile silently:
PBUILDER.EXE "C:\Projects\TestProject.pbpx" /exetype:2 /c /q /s /filelistupt