lpstat
Show status information about printers. tldr-pages
On macOS
Several platforms
List all queued print jobs
lpstatIdentifyList printers present on the machine and whether they are enabled for printing
lpstat -pIdentifyShow the default printer
lpstat -dIdentifyDisplay all available status information
lpstat -tIdentifyList print jobs queued by a specific user
lpstat -u userIdentifyDisplay what devices the printers are attached to
lpstat -vIdentifymacOS
Display status information about the current classes, jobs, and printers.
Show a long listing of printers, classes, and jobs
lpstat -lIdentifyForce encryption when connecting to the CUPS server
lpstat -EIdentifyShow the ranking of print jobs
lpstat -RIdentifyShow whether or not the CUPS server is running
lpstat -rIdentifyShow all status information
lpstat -tIdentify