For many Mac applications, there is a way to print from the command line, but who'd want to? (I'm kidding.) OS X has an easier way.
Desktop Printer Icon
The specifics are different depending on OS version, but for OS X El Capitan, it's easy to make a desktop printer icon. Open System Preferences->Printers & Scanners. Drag and drop a printer icon to the Desktop.
To print a file, drag and drop it to the printer icon. If the application supports printing, the file will print on the selected printer using the printer's default options. For example, drag a JPEG file, a PDF, a Microsoft Word file and a Photoshop file to the printer icon, and the files will print. Need to print 12 PDF files? Drag them to the printer icon.
I paused my printer to show some files in the list of printer jobs after I dragged them to the printer icon.

Automator
For more control of printer settings including application options, use OS X Automator.

Apple says:
Automator lets you automate much of what you do on your computer. With Automator, you don’t need to know complicated programming or scripting languages to create automations—you just use any of the hundreds of actions available in the Automator library to create workflows. Automator comes with a Library of hundreds of actions. The actions can interact with a variety of apps and parts of the OS. A workflow can be as simple as one action or contain many actions that perform a series of complex tasks.
Script Editor and AppleScript
If an application doesn't have an Automator library, many Mac applications support AppleScript.
Apple says:
Script Editor lets you create powerful scripts, tools, and even applications. You can create scripts to perform repetitive tasks, automate complex workflows, and control applications or even the system. You can use various scripting languages, including AppleScript, JavaScript for Automation, shell scripts, and also some third-party scripting languages.
To check to see if an Application works with AppleScript and OS X El Capitan, open Script Editor
. Open the Library window. If you don't see the application, click the blue + icon at the top of the window.

The window lets you open applications. If an application works with AppleScript, Script Editor
will add it to the Library, if not, Script Editor
will tell you that the application is not scriptable.
Here's a simple script.
on run these_files
tell application "Microsoft Word"
repeat with my_file in these_files
print my_file
end repeat
end tell
end run
Printing from the Command Line
OS X can print from the command line, but except for a few utility apps like BBEdit, there's nothing similar to the Windows method.
With OS X, if an application supports printing with AppleScript, the osascript
command can automate printing with an application from the command line. See man osascript
.
A command like this could print Microsoft Word files from the command line.
osascript printit.scpt /Users/user/Desktop/The\ Devil\'s\ Dictionary.docx
Have a look at this question: http://stackoverflow.com/questions/8879917/command-line-equiv-to-print-a-docx-file-from-mac-os-x-finder
– hdhondt – 2016-07-13T23:42:44.880This has already been discussed and answered. Check out http://stackoverflow.com/questions/11192396/programming-a-filter-backend-to-print-to-pdf-with-cups-from-any-mac-os-x-appli/11194723#11194723
– SaxDaddy – 2016-07-16T07:07:26.060