Reference
CLI
The artiwright command: build, inspect, lint, render and finalize files from a terminal or a script.
The artiwright command does from a terminal what the tools do for agents. It’s useful in scripts, CI and code
sandboxes.
npx artiwright <command> [options]Commands
Section titled “Commands”| Command | What it does | Exit code |
|---|---|---|
run <script> [--save f.pptx] [--record f.json] |
Runs a build script; saves the deck or workbook and/or its change log | 0 |
inspect <source> [--kind] [--slide] [--search] [--target] [--max-chars] |
Records as NDJSON; workbooks also take --sheet, --range |
0 |
lint <source> [--rules] [--severity] [--slide] |
Findings as JSON; workbooks take --sheet |
1 when there are errors |
render <source> [--out dir] [--slides 1,3] [--montage] [--scale] |
PNG previews; workbooks take --sheets, --range |
0 |
finalize <source> --output f.pptx [--root dir] [--requirements r.json] |
Checks and saves, with a receipt | 1 when blocked |
mcp [options] |
The MCP server (see server options) | runs until stopped |
skills install <folder> |
Copies the presentations and spreadsheets guides into a skills folder | 0 |
help [path] [--search re] |
API help from the catalog | 0 |
version |
Versions of Artiwright, its engine and Node.js | 0 |
A <source> is a build script, a recorded change log (--record output), or an existing file (.pptx, .potx,
.xlsx, .xltx). Errors go to stderr with suggestions, and exit with code 2. --slides counts from 1.
Build scripts
Section titled “Build scripts”A script’s default export is a deck, a workbook, or a function that returns one. Functions receive the library, so scripts need no imports:
export default function build({ Presentation, compose, KpiCards }) { const deck = Presentation.create({ theme: "spruce" }); compose(deck.slides.add(), KpiCards({ title: "Q3 at a glance", kpis: [{ label: "Revenue", value: "$87M", delta: "18% YoY", trend: "up" }], })); return deck;}npx artiwright run build.mjs --save q3.pptxnpx artiwright lint q3.pptxnpx artiwright render q3.pptx --slides 1 --out previewsRecorded change logs replay to the same deck with the same anchors, so a build in one step can be checked or finalized in the next.