When I add a printer (HP Color LaserJet CP3525) interactively, macOS determines the device type and is able to configure the printer without further user input.
Is it possible to emulate this with command line tools? I tried
lpadmin -p _a_b_c_d -v ipp://a.b.c.d
but get a printer with the setting
printer-make-and-model='Local Raw Printer'
Edit: Apparently, the PPD for the printer is installed through software update, using a search predicate of
("printing software" IN tags OR "printer update" IN tags) AND "MANUFACTURER:Hewlett-Packard;MODEL:HP Color LaserJet CP3525" IN tags
I'm still uncertain on how to force this installation through the command line. I tried to use predicate_installer.py, but that hangs.