wpkg --print-build-number

The --print-build-number command is used to display the current build number for the current project.

By default, this is a simple print of the file named wpkg/build_number. A different filename can be specified with the --build-number-filename option.

This command has no side effect on the build number. To increment the build number, use the --increment-build-number command. To increment and print the build number at once, use the --increment-build-number command with the --verbose option.