screencapture
Screencapture is a command-line utility in macOS that captures still images of the computer screen. It is part of the Core Graphics framework and is accessible from the Terminal. The tool can capture the entire display, a selected region, or a specific window, and it can save the resulting image to a file or copy it to the clipboard. Additional options allow including the cursor, delaying the capture, or targeting a particular display when multiple monitors are connected.
The exact command-line options available for screencapture can vary by macOS version, but common capabilities include
Output is typically in PNG format by default, though the tool may support other formats or be
Screencapture remains a core part of macOS’s approach to screen capture, offering a lightweight, scriptable alternative