Saltar al contenido
CLI

CaptureMann desde tu terminal.

Cada función es un comando. Automatiza capturas, grabaciones, transcripciones y exportaciones, o encadénalas con las herramientas que ya usas. Los comandos hablan con la app de este ordenador; nada pasa por un servidor.

Instalación

El comando capturemann viene dentro de cada paquete de CaptureMann, junto al servidor MCP.

Terminal
# El comando está dentro de la app. Enlázalo una sola vez:$ sudo ln -s /Applications/CaptureMann.app/Contents/MacOS/capturemann /usr/local/bin/capturemann# ¿Instalado con Homebrew? El cask ya lo enlaza.$ capturemann --version

Primeros pasos

Terminal
$ capturemann capture screenshot --window "Brightdesk" --copy$ capturemann record start --display 1 --camera on --mic default# CaptureMann pregunta en pantalla: ¿empezar a grabar? Espera tu respuesta.$ capturemann record stop$ capturemann ai transcribe rec_0412 --language en --wait
Te pregunta primero. Los comandos que empiezan a grabar, publican, borran, mueven la biblioteca o descargan un modelo muestran una confirmación en la app y esperan tu respuesta. Ninguna opción la omite.

Comandos

71 comandos en 27 grupos, ordenados según tu forma de trabajar. Abre uno para ver todas sus opciones, o ejecuta capturemann <command> --help. Cada uno es la misma acción que una herramienta MCP.

Las descripciones y las páginas de cada comando están en inglés.

Capturar

Anotar y tableros

Grabar

Editar

Transcripciones, subtítulos e informes

Exportar e importar

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

Subir y publicar

Click Guide

Biblioteca y ajustes

Tareas y sistema

Opciones de todos los comandos

Esta sección es el texto de referencia y se mantiene en inglés.

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.

Salida y códigos de salida

Esta sección es el texto de referencia y se mantiene en inglés.

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

Ejemplos

Captura al portapapeles desde un script

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

Transcribir una grabación y esperar a que termine

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

Una guía paso a paso para tu repositorio de documentación

Terminal
$ capturemann guide start --window "Brightdesk" --title "Change the billing plan"# haz los pasos en pantalla y luego$ capturemann guide stop$ capturemann guide export <id> --format markdown --dest docs/billing/

Listar las grabaciones como JSON para un pipeline

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

Todo lo que hace la CLI lo puede hacer también un agente: 90 herramientas MCP.