sharing this info from a more recent thread since it also fits here:
after a little more reading here, i found that you can use lpinfo -v
to find a printer’s uri. this page explains that you can find the driver or ppd with lpinfo -m
and then how to set up a printer with lpadmin -p
.