macOS
/ binaries
/
screencapture
/usr/sbin/screencapture
Capture images from the screen and save them to a file or the clipboard
The
screencapture
utility is not very well documented to date.
source: man