DeckFlow Logo Developers DeckFlow documentation
Developer GuideAPI ReferenceMCPCLI

CLI Overview

The DeckFlow CLI is currently split into two command line tools with very different use cases: DeckUse handles local PPTX structure editing, and DeckOps handles cloud-backed task and file processing workflows.

Which CLI to Use

CLIExecution modelBest forNetwork and credentials
deckuseLocal-first, file-native PPTX workspaceLocally inspect and modify PPTX structure, replace text, set titles or font sizes, move shapes, and commit back to .pptxRun local file operations after installation; no login, API key, or cloud requests required
deckopsCloud-backed DeckFlow task runnerCreate, Translate, Compress, OCR, Convert, Extract, Join, task management, and batch automationRequires login or token; uploads files and requests DeckFlow backend; ongoing tasks require a valid key, space, and credits

DeckUse is best suited for scenarios involving "opening an existing PPTX and making controlled structural changes locally." It unpacks the .pptx file into a workspace, applies commands to the Office Open XML structure in the local directory, and finally commits the changes back to PPTX. It is designed to be open source, locally installable, and locally executable; as long as dependencies are installed, daily processing requires no network requests.

DeckOps is better suited for scenarios involving "handing files over to the DeckFlow backend for conversion, generation, translation, or OCR." It handles uploading files, creating tasks, polling task status, and supports --json output for script or agent parsing. Since tasks are executed in the cloud, DeckOps requires a valid token/space and an active network connection.

Capability Map

CapabilityDeckUseDeckOps
Local PPTX structure readinglist slides, show slide, get textNot a core capability
Local PPTX structure modificationset text, set font-size, move, replace, commitNot a core capability
PPTX safety boundariesModify existing XML nodes, text, transforms, and styles as much as possible; avoid modifying rel/media/package topology by defaultHandled by backend task system
Deck generationNot responsible for generating new deck contentcreate
Document translationNot responsible for cloud translationtranslate
File compressionNot responsiblecompress
OCRNot responsibleocr
Format conversion/renderingREADME explicitly recommends using DeckOps for rendering and conversionconvert
Multiple PPTX mergingNot a core command currentlyjoin
Task query/deletionNo task system requiredtask list, task get, task delete
Agent/CI outputLocal commands can be chained by scripts--json, --no-wait, --timeout, repl

When both inputs and outputs should remain on the local machine, prioritize using DeckUse. For example, batch-replacing company years, renaming specific slide titles, moving existing shapes, reading slide/title/text structures, or allowing coding agents to make incremental local edits to PPTX files.

When the task itself requires cloud capabilities, use DeckOps. For example, generating a deck from a prompt/reference file, translating PPTX/PDF/DOCX/XLSX/KEY files, converting PPTX to PDF/video/image, compressing large files, OCR on images, or integrating background tasks into CI/Agent pipelines.

Source Basis

  • DeckUse GitHub: https://github.com/deckflow/deckuse
  • DeckUse README/manual/source entrypoint: README.md, manual.md, src/cli.ts
  • DeckUse npm metadata checked on 2026-05-27: public package is deckuse, binary is deckuse, Node requirement is >=18.0.0
  • DeckOps GitHub: https://github.com/deckflow/deckops
  • DeckOps README/source entrypoint: README.md, src/cli.ts, src/commands/*
  • DeckOps npm metadata checked on 2026-05-27: public package is deckops, binary is deckops, latest npm version is 0.4.2