Skip to content
CLI

CaptureMann from your terminal.

Every feature is a command. Script screenshots, recordings, transcripts and exports, or chain them with the tools you already use. The commands talk to the app on this computer; nothing goes through a server.

Install

The capturemann command ships inside every CaptureMann package, next to the MCP server.

Terminal
# The command is inside the app. Link it once:$ sudo ln -s /Applications/CaptureMann.app/Contents/MacOS/capturemann /usr/local/bin/capturemann# Installed with Homebrew? The cask already links it.$ capturemann --version

Quick start

Terminal
$ capturemann capture screenshot --window "Brightdesk" --copy$ capturemann record start --display 1 --camera on --mic default# CaptureMann asks on screen: start recording? It waits for your answer.$ capturemann record stop$ capturemann ai transcribe rec_0412 --language en --wait
It asks you first. Commands that start a recording, publish, delete, move the library or download a model show a confirmation in the app and wait for you. No flag skips it.

Commands

71 commands in 27 groups, arranged as you work. Open one for every flag, or run capturemann <command> --help. Each one is the same action as an MCP tool.

Capture

Annotate and boards

Record

Edit

Transcripts, captions and reports

Export and import

  • capturemann exportRender a recording to one combined MP4 with the FFmpeg sidecar (export_video)
  • capturemann importBring media files and pictures that CaptureMann did not record into the library as captures (import_media)

Upload and publish

Click Guide

Library and settings

Jobs and system

Options for every command

These four flags are accepted by every command, before or after the subcommand. They are left out of the per-command tables.

FlagValueDefaultDescription
--jsonswitchoffMachine-readable JSON on stdout (the daemon's result object, pretty-printed); errors as JSON on stderr.
--socket <PATH>path or pipe namethe platform endpointDaemon socket path (Unix) or pipe name (Windows). Env: CAPTUREMANN_SOCKET.
--no-startswitchoffDo not start a daemon when none is running; fail with daemon_unavailable instead.
--request-id <ID>stringnoneIdempotency key for commands that change something. A retry with the same key replays the first result (the daemon keeps it for 24 hours). Commands that run several actions append a suffix to it.

Output and exit codes

By default every command prints human-readable text on stdout and errors on stderr as error[<code>]: <message> with extra lines such as reason: or a hint. With --json, stdout carries the daemon's result object and a failure prints one line of JSON on stderr: {"error":{"code":...,"message":...,"data":...,"exit_code":N}}. Image bytes are never printed: image.data is replaced by image.bytes; use --out FILE (on the commands that have it) to write the PNG. Progress of a waiting command (--wait) goes to stderr, so stdout stays parseable.

Terminal
$ capturemann --json settings get recording.fps{  "settings": {    "recording.fps": 30  }}$ capturemann --json capture get missing_id{"error":{"code":"not_found","message":"no capture `missing_id`","data":null,"exit_code":2}}   (stderr)(exit 2)

Times in editing commands are seconds (12.5) or ticks (t:1500000, 120,000 ticks per second); ranges are START-END.

The exit code follows the shared error code of the daemon's answer (error.data.code). The table is from specs/README.md and crates/cm-cli/src/error.rs (a test pins every row).

ExitMeaningError codes
0Success (also --help and --version)
1Other failureinternal, not_implemented; any code outside the table (method_not_found, invalid_request); CLI-local errors mcp_unavailable and mcp_failed
2Bad input or not foundinvalid_input, not_found; also command-line usage errors (clap)
3The user declined, or did not answer in 5 minutesuser_declined, confirmation_timeout
4An operating-system permission is missing (screen, camera, microphone, accessibility, input monitoring, files)permission_missing
5Platform, network, disk or daemon problemdevice_busy, disk_full, network, platform_rejected, auth_expired, daemon_unavailable
6A job failed, or a conflicting operation is runningjob_failed, busy

--wait commands exit 6 when the job fails or is cancelled; --timeout SECS with --wait gives up after that many seconds (exit 6, the job keeps running).

Recipes

Screenshot to the clipboard from a script

Terminal
$ capturemann capture screenshot --region 0,0,1280,800 --copy --out shot.png

Transcribe a recording and wait for it

Terminal
$ capturemann ai transcribe rec_0412 --language en --wait$ capturemann ai captions get rec_0412

A how-to guide for your docs repo

Terminal
$ capturemann guide start --window "Brightdesk" --title "Change the billing plan"# click through the task, then$ capturemann guide stop$ capturemann guide export <id> --format markdown --dest docs/billing/

List recordings as JSON for a pipeline

Terminal
$ capturemann --json library list --kind recording --limit 20

Everything the CLI does an agent can do as well: 90 MCP tools.