Skip to content

Getting Started

karlmoriaty edited this page Dec 6, 2026 · 1 revision

Getting started

Install

Linux:

curl -fsSL https://raw.githubusercontent.com/karlmoriaty/office-command-operate/main/install.sh | bash

Windows PowerShell:

irm https://raw.githubusercontent.com/karlmoriaty/office-command-operate/main/install.ps1 | iex

Package managers:

npm install -g cmd_op
scoop install cmd_op

Verify:

cmd_op --version

First document

cmd_op create deck.pptx
cmd_op add deck.pptx / --type slide --prop title="Hello, World!"
cmd_op view deck.pptx screenshot -o deck.png

Open deck.png. No PowerPoint or Office installation is involved.

Live preview:

cmd_op watch deck.pptx

Then open http://localhost:26315; every edit refreshes the preview.

MCP

Auto-register for a known client:

cmd_op mcp cursor

Also supported: claude, vscode, lmstudio, opencode.

Generic configuration:

{
  "mcpServers": {
    "cmd_op": {
      "command": "cmd_op",
      "args": ["mcp"]
    }
  }
}

Without the binary installed:

{
  "mcpServers": {
    "cmd_op": {
      "command": "npx",
      "args": ["-y", "cmd_op", "mcp"]
    }
  }
}

SDKs

Python:

pip install cmd-op-sdk

Node:

npm install cmd-op-sdk

Both use a resident pipe, so repeated edits do not spawn a process per call. See the repository README for the API and examples.

Next

Clone this wiki locally