跳到正文
CLI

在终端里使用 CaptureMann。

每个功能都是一条命令。你可以用脚本完成截图、录制、转录和导出,也可以把它们与你已有的工具串联起来。命令与这台电脑上的应用通信,不经过任何服务器。

安装

capturemann 命令随每个 CaptureMann 安装包一起提供,就在 MCP 服务器旁边。

Terminal
# 命令就在应用里面。只需链接一次:$ sudo ln -s /Applications/CaptureMann.app/Contents/MacOS/capturemann /usr/local/bin/capturemann# 用 Homebrew 安装的?cask 已经链接好了。$ capturemann --version

快速开始

Terminal
$ capturemann capture screenshot --window "Brightdesk" --copy$ capturemann record start --display 1 --camera on --mic default# CaptureMann 会在屏幕上询问:开始录制吗?它会等你回答。$ capturemann record stop$ capturemann ai transcribe rec_0412 --language en --wait
它会先问你。 开始录制、发布、删除、移动素材库或下载模型的命令,都会在应用中弹出确认并等待你操作。没有任何参数可以跳过这一步。

命令

27 组共 71 条命令,按你的工作流程排列。打开某条命令可查看全部参数,也可以运行 capturemann <command> --help。每条命令与一个 MCP 工具执行的是同一个操作。

各命令的说明和页面为英文。

截图

标注与画板

录制

编辑

转录、字幕和报告

导出与导入

  • 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)

上传与发布

Click Guide

素材库与设置

任务与系统

所有命令通用的选项

本节是参考文本,保持英文原样。

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.

输出与退出码

本节是参考文本,保持英文原样。

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).

用法示例

在脚本中把截图放进剪贴板

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

转录一段录制并等待完成

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

为文档仓库生成操作指南

Terminal
$ capturemann guide start --window "Brightdesk" --title "Change the billing plan"# 在屏幕上依次完成各个步骤,然后$ capturemann guide stop$ capturemann guide export <id> --format markdown --dest docs/billing/

以 JSON 列出录制,供管道使用

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

CLI 能做的一切,AI 智能体也能做:90 个 MCP 工具。