Chuyển đến nội dung
CLI

CaptureMann từ dòng lệnh.

Mỗi tính năng là một lệnh. Tự động hóa việc chụp màn hình, quay màn hình, chép lời và xuất tệp bằng script, hoặc nối chúng với các công cụ bạn đang dùng. Các lệnh giao tiếp với ứng dụng ngay trên máy bạn; không có gì đi qua máy chủ.

Cài đặt

Lệnh capturemann có sẵn trong mọi gói CaptureMann, cạnh máy chủ MCP.

Terminal
# Lệnh nằm trong ứng dụng. Chỉ cần liên kết một lần:$ sudo ln -s /Applications/CaptureMann.app/Contents/MacOS/capturemann /usr/local/bin/capturemann# Cài bằng Homebrew? Cask đã liên kết sẵn.$ capturemann --version

Bắt đầu nhanh

Terminal
$ capturemann capture screenshot --window "Brightdesk" --copy$ capturemann record start --display 1 --camera on --mic default# CaptureMann hỏi trên màn hình: bắt đầu quay? Nó chờ bạn trả lời.$ capturemann record stop$ capturemann ai transcribe rec_0412 --language en --wait
Luôn hỏi bạn trước. Các lệnh bắt đầu quay, đăng tải, xóa, di chuyển thư viện hoặc tải một mô hình sẽ hiện hộp xác nhận trong ứng dụng và chờ bạn. Không có cờ nào bỏ qua được bước này.

Lệnh

71 lệnh trong 27 nhóm, sắp xếp theo cách bạn làm việc. Mở một lệnh để xem mọi cờ, hoặc chạy capturemann <command> --help. Mỗi lệnh là cùng một thao tác với một công cụ MCP.

Mô tả và trang của từng lệnh bằng tiếng Anh.

Chụp

Chú thích và bảng

Quay

Chỉnh sửa

Bản chép lời, phụ đề và báo cáo

Xuất và nhập

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

Tải lên và đăng tải

Click Guide

Thư viện và cài đặt

Tác vụ và hệ thống

Tùy chọn cho mọi lệnh

Tài liệu tham chiếu dưới đây được giữ nguyên bằng tiếng Anh.

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.

Kết quả và mã thoát

Tài liệu tham chiếu dưới đây được giữ nguyên bằng tiếng Anh.

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

Công thức mẫu

Chụp màn hình vào bảng nhớ tạm từ một kịch bản

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

Tạo bản chép lời cho một bản quay và chờ xong

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

Hướng dẫn từng bước cho kho tài liệu của bạn

Terminal
$ capturemann guide start --window "Brightdesk" --title "Change the billing plan"# làm lần lượt các bước trên màn hình, rồi$ capturemann guide stop$ capturemann guide export <id> --format markdown --dest docs/billing/

Liệt kê các bản quay dưới dạng JSON cho pipeline

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

Mọi việc CLI làm được, AI agent cũng làm được: 90 công cụ MCP.