screenshot
CleanShot X CLI
Use the cleanshot command to trigger CleanShot X actions.
Basic usage
cleanshot <subcommand> [flags]
Subcommands
Query commands
latest- Print path of most recent screenshot
Capture commands
all-in-one- Launch all-in-one capture toolcapture-area- Area capturecapture-fullscreen- Fullscreen capturecapture-window- Window capturecapture-previous-area- Repeat last screenshotself-timer- Self-timer capturescrolling-capture- Scrolling capture
Recording
record-screen- Screen recording
OCR
capture-text- OCR text recognition
Utility
pin- Pin image fileopen-annotate- Annotate image fileopen-from-clipboard- Annotate clipboard imagetoggle-desktop-icons- Toggle desktop icons visibilityhide-desktop-icons- Hide desktop iconsshow-desktop-icons- Show desktop iconsadd-quick-access-overlay- Add quick access overlayopen-history- Open capture historyrestore-recently-closed- Restore recently deletedopen-settings- Open settings
Flags
Coordinate parameters
-x <int>- X coordinate (origin at lower left)-y <int>- Y coordinate-width <int>- Width in pixels-height <int>- Height in pixels-display <int>- Display number (1=main, 2=secondary, etc.)
Action parameters
-action <string>- Post-capture action:copy,save,annotate,upload,pin-filepath <path>- File path for pin/annotate/OCR-tab <string>- Settings tab:general,wallpaper,shortcuts,quickaccess,recording,screenshots,annotate,cloud,advanced,about-path <dir>- Screenshot directory (default:~/Downloads/screens)
Boolean flags
-start- Auto-start scrolling capture-autoscroll- Enable automatic scrolling-linebreaks- Preserve line breaks in OCR text
Examples
# Get latest screenshot
cleanshot latest
cleanshot latest -path ~/Pictures/screenshots
# Simple captures
cleanshot capture-area
cleanshot capture-fullscreen
# With coordinates
cleanshot capture-area -x 100 -y 120 -width 200 -height 150
# Save and print path
cleanshot capture-area -action save
cleanshot capture-fullscreen -action save -path ~/Pictures/screenshots
# Scrolling capture
cleanshot scrolling-capture -start -autoscroll
# Screen recording with region
cleanshot record-screen -x 0 -y 0 -width 1920 -height 1080 -display 1
# OCR
cleanshot capture-text -linebreaks
cleanshot capture-text -filepath ~/screenshot.png
# Annotate
cleanshot open-annotate -filepath ~/screenshot.png
cleanshot open-from-clipboard
# Settings
cleanshot open-settings -tab shortcuts
# Help
cleanshot help
Key features
- Automatically detects and prints screenshot path when using
-action save - Default screenshot directory:
~/Downloads/screens - Boolean flags don't require values
- Waits up to 10 seconds for screenshot to appear
Usage examples
When user requests:
- "what's my latest screenshot" →
cleanshot latest - "get the most recent screenshot path" →
cleanshot latest - "take a screenshot" →
cleanshot capture-areaorcleanshot capture-fullscreen - "save a screenshot" →
cleanshot capture-area -action save - "record my screen" →
cleanshot record-screen - "extract text from image" →
cleanshot capture-text -filepath <path> - "annotate this image" →
cleanshot open-annotate -filepath <path> - "hide desktop icons" →
cleanshot hide-desktop-icons - "scrolling screenshot" →
cleanshot scrolling-capture - "capture this specific region" → use coordinate parameters
Always confirm which capture type the user wants if ambiguous.
More from whilp/world
hammerspoon
Configure and manage Hammerspoon automation, app launching, and window switching. Use when working with ~/.config/hammerspoon config files, adding keybindings, modifying the leader modal, or troubleshooting Hammerspoon functionality. Window management is handled by AeroSpace.
10dev
Development workflow for this repository. Run `make help` to see available targets.
1meta
Guide for writing and improving Claude Code skills. Use when creating new skills, debugging why skills aren't activating, or improving skill descriptions and structure.
1ghostty
Configure and manage Ghostty terminal emulator settings. Use when modifying ghostty config, validating configuration, checking window settings, themes, fonts, keybindings, or troubleshooting ghostty startup behavior.
1gh-workflow
Trigger and monitor GitHub Actions workflows, CI/CD pipelines, and automated builds. Use when running workflows, triggering CI, deploying via GitHub Actions, downloading artifacts, or checking workflow status on github.com
1dev-workflow
Development workflow for this repository. Run `make help` to see available targets.
1