With pdfcpu v0.8.0, listing boxes without specifying the optional box types always exits with 1, with an error message at the end of the output:
$ pdfcpu boxes list in.pdf
listing mediaBox, cropBox, trimBox, bleedBox, artBox for in.pdf
... # the boxes are correctly listed
problem parsing box list: pdfcpu: invalid box prefix: in.pdf
# exit code is 1
Listing with the box types works fine:
$ pdfcpu boxes list m,c,t,b,a in.pdf
listing mediaBox, cropBox, trimBox, bleedBox, artBox for in.pdf
... # the boxes are correctly listed
# exit code is 0