pbmmake

Create a blank bitmap. More information: https://netpbm.sourceforge.net/doc/pbmmake.html.

pbmmake width height > path/to/output_file.pbm

pbmmake -white|black|grey width height > path/to/output_file.pbm