Use this page to look up the exact arguments and flags of a deck command. Each section shows the command’s summary, its usage lines and, folded, the full deck <command> --help as @deckster/cli 0.8.0 prints it. deck --help lists the commands in the same order:
$ deck --help
Usage: deck <command> [options]
Commands:
dev Serve a deck with hot reload
present Open a deck in its own window, with displays and presenter view
build Build a deck (or every deck) to decks/<deck>/dist
preview Serve the built output of a deck
shot Write PNG screenshots of slides (and steps)
diff Show which slides changed visually against a git ref or baseline
export Export a deck to PDF, PNG and PowerPoint
lint Check a deck for schema errors, overflow, contrast and off-brand values
layouts List the layouts available to a deck
icons List the icon names every brand has
charts List the chart and number components and when to use each
diagrams List the diagram components, node kinds, cards and animation primitives
components List the code, media, link and demo components with their props
brand Print a brand's resolved tokens, or check a brand
new Create a deck, or add a slide to one
types Write tsconfig.json so editors and tsc resolve @deckster imports
comments List, resolve, reopen, add and prune review comments
mcp Print Claude Code and Codex configuration for a running deck dev --mcp
agent Check the agent CLIs (Claude Code, Codex): installed, version, signed in
Run `deck <command> --help` for the options of one command; `--version` prints the version.Shared conventions
Workspace. Every command works in one workspace: the folder DECK_ROOT names, else the nearest folder at or above the current one that contains decks/, else the current folder (so deck new can start a workspace in an empty folder). When the workspace is not the current folder, the CLI prints Using the workspace <path> on standard error. It never picks your home folder or / on its own, and exits with 1 (your home folder’s path appears where /Users/you is):
$ cd ~ && deck layouts
/Users/you is a home or root folder, so deck will not use it as a workspace: a deck's dev server would sit next to your keys and tokens.
Make a project folder (`mkdir talks && cd talks`) and run the command there, or set DECK_ROOT to the folder you mean.Deck name. A deck is named by its folder under decks/. When the deck argument is left out, dev and present use a nonempty DECK, open the only deck, or show the chooser when several decks exist. layouts uses DECK, then hello if present, then the workspace’s only deck. preview and mcp use DECK, else hello, so name the deck when the workspace has no hello. build builds every deck (or the one in DECK). Others, such as deck lint, need the deck named and print Which deck? Name one, for example and an example when it is missing.
--brand <name>. On dev, present, shot, lint, diff and export it renders with brands/<name> instead of the brand in deck.config.ts. On new it is the brand written into the new deck’s config, and on icons it takes a comma-separated list of brands to share names between.
--json. A command that takes --json prints its result as indented JSON on standard output. When shot, diff, export, lint, icons, brand, comments, mcp, agent or present --list-displays fails with --json, it prints the failure there too and exits with 1:
$ deck lint nope --json
{
"ok": false,
"error": {
"type": "DeckBuildError",
"message": "No such deck in decks/nope:\n - There is no decks/nope/deck.config.ts.\n Fix: Use one of: launch-review; or create decks/nope/deck.config.ts."
}
}type names the kind of failure: CliError for a bad command line, DeckBuildError for a deck that does not exist or does not load, and others such as BrandError and BrowserError. A deck that cannot render also carries its lint findings. The catalog commands (layouts, charts, diagrams, components) print a failure as text on standard error, with or without --json.
Exit codes. 0 on success; 1 when the command fails, lint reports errors, or deck diff --fail-on-change finds a change; 129 when the terminal closes (SIGHUP). Ctrl+C, SIGTERM and SIGHUP close the servers and browsers a command started before it exits.
Environment variables.
| Variable | What it sets |
|---|---|
DECK_ROOT |
The workspace folder, so you can run deck from anywhere. Empty counts as unset. |
DECK |
The deck a command uses when none is named. Empty counts as unset. |
DECK_AUTHOR |
The name new comments and resolutions are signed with. Without it, git’s user.name, else Reviewer. |
deck dev
Serve a deck with hot reload.
deck dev [deck] [--port <n>] [--host] [--brand <name>] [--mcp] [--agent claude|codex] [--agent-panel right|bottom] [--agent-model <m>] [--agent-web]Full help: deck dev --help
Usage: deck dev [deck] [--port <n>] [--host] [--brand <name>] [--mcp]
[--agent claude|codex] [--agent-panel right|bottom] [--agent-model <m>]
[--agent-web]
Serves a deck with hot reload. When several decks exist, open the printed chooser URL to pick one.
It runs until you press q or Ctrl+C.
Arguments:
deck Deck folder name under decks/. Defaults to $DECK, the sole deck, or the chooser.
Options:
--port <n> Use this port for the deck or chooser and fail if it is taken.
Default: the first free port from 5173.
--host Listen on all network interfaces, for example to present from a phone.
--brand <name> Render with brands/<name> instead of the deck config's brand.
--mcp Also serve the deck's MCP tools at /__deck/mcp on 127.0.0.1, for agents (Claude
Code, Codex). Requests need a per-run bearer token, which is written with the port
to .deck/agent/<deck>/server.json (mode 0600) until the server stops. Run
`deck mcp <deck>` for ready-to-paste client configuration.
--agent <name> Add the agent chat beside the slide: claude or codex. It runs that
CLI with your own login, one process per prompt; every turn can be undone.
Implies --mcp. Check the set-up with `deck agent doctor`.
The agent edits only the deck's content: slide files (.mdx, .tsx) in slides/ and media and data in assets/ and public/, in a working copy the editor copies into the deck; the slide list changes only through the deck tools, and anything else it writes is ignored.
See docs/agent.md.
--agent-panel <right|bottom>
Where the chat docks. Default: right.
--agent-model <name>
The model the agent uses. Default: the CLI's own default (for Codex, the model
in $CODEX_HOME/config.toml).
--agent-web Let the agent search the web and read pages (Claude's WebSearch and WebFetch
tools, Codex's live web search). Off by default: pages are text from outside
the repository that the agent reads while it edits code your browser runs, and
its queries and the addresses it opens leave this machine.
-h, --help Show this help.New in v0.7.0. deck dev uses the deck argument first, then nonempty DECK, then the only deck in the workspace. With several decks it prints the chooser URL even if one of them is hello. With no decks it asks you to create one. See Choose a deck in your browser.
Guide: quickstart.
deck present
Open a deck in its own window, with displays and presenter view.
deck present [deck] [--brand <name>] [--port <n>] [--built] [--fullscreen] [--display <n>] [--presenter [display]] [--kiosk] [--browser] [--verbose] [--agent claude|codex] [--agent-panel right|bottom] [--agent-model <m>] [--agent-web]
deck present --list-displays [--json]Full help: deck present --help
Usage: deck present [deck] [--brand <name>] [--port <n>] [--built] [--fullscreen]
[--display <n>] [--presenter [display]] [--kiosk] [--browser] [--verbose]
[--agent claude|codex] [--agent-panel right|bottom] [--agent-model <m>]
[--agent-web]
deck present --list-displays [--json]
Opens a deck in its own desktop window (Electron) and serves it with hot reload, so edits show at
once. With several decks and no name, choose a deck in the gallery. Use Back to decks to end the
current presentation and choose another. Quit Deckster or press Ctrl+C to end the command.
The terminal shows a short status (the
URL, the window, the agent and its turns); --verbose adds the dev server's log.
Arguments:
deck Deck folder name under decks/. Default: $DECK, then the only deck, then the gallery.
Options:
--brand <name> Render with brands/<name> instead of the deck config's brand.
--port <n> Set the deck or gallery port. Fail if it is taken. Default: first free port
from 5173 (4173 for a direct --built presentation).
--built Build the deck and present the static build instead of the dev server: no hot
reload, comments, agent or other dev tools. Cannot be combined with --brand or
--agent.
--fullscreen Make the audience window fullscreen.
--display <n> Open the audience window on display n (see --list-displays). Default: the
primary display, or the display that is not the presenter's.
--presenter [n] Also open the presenter window, with notes and timer, on display n. Default: the
other display; with one display both windows share it. The audience window then
stays windowed.
--kiosk Fullscreen with no menu; Cmd/Ctrl+Q must be pressed twice to quit.
In the gallery, Cmd/Ctrl+Shift+B returns from the active presentation.
--browser Open the deck in Chrome's app mode (else the default browser) instead of
Electron, and print the URL. The fallback when Electron's binary is not
downloaded.
--list-displays Print the connected displays and exit.
--json With --list-displays, print { ok, displays } as JSON.
--verbose Also print the dev server's log (hot updates, requests).
--agent <name> Add the agent chat beside the slide: claude or codex. It runs that
CLI with your own login, one process per prompt; every turn can be undone.
Implies --mcp. Check the set-up with `deck agent doctor`.
The agent edits only the deck's content: slide files (.mdx, .tsx) in slides/ and media and data in assets/ and public/, in a working copy the editor copies into the deck; the slide list changes only through the deck tools, and anything else it writes is ignored.
See docs/agent.md.
--agent-panel <right|bottom>
Where the chat docks. Default: right.
--agent-model <name>
The model the agent uses. Default: the CLI's own default (for Codex, the model
in $CODEX_HOME/config.toml).
--agent-web Let the agent search the web and read pages (Claude's WebSearch and WebFetch
tools, Codex's live web search). Off by default: pages are text from outside
the repository that the agent reads while it edits code your browser runs, and
its queries and the addresses it opens leave this machine.
In the window, only the window's own first page load gets the session that
the agent panel and comments need.
-h, --help Show this help.
Electron's binary is downloaded once; `deck present` prints the command when it is missing (about 120 MB). See docs/present.md.New in v0.7.0. deck present uses the same deck-selection order as deck dev. With several decks and neither a name nor DECK, it opens the gallery in Deckster, or in your browser with --browser. See Choose a deck in the desktop gallery.
Guide: deck present and displays.
deck build
Build a deck (or every deck) to decks/<deck>/dist.
deck build [deck] [--with-exports] [--all] [--out <dir>] [--include-scratch]Full help: deck build --help
Usage: deck build [deck] [--with-exports] [--all] [--out <dir>] [--include-scratch]
Builds a deck to decks/<deck>/dist as static files that can be hosted under any path.
With --out, builds decks into one site folder instead: <dir>/<deck>/ for each deck, with a
thumbnail.png of its first slide, and <dir>/index.html, a gallery of the decks (title, brand,
slide count, thumbnail, links to each deck and to its PDF and PPTX). Everything is relative, so
the folder can be hosted under any path. The entire destination folder is replaced with the
selected decks and their gallery. The site leaves out scratch decks, whose folder name
starts with zz- (throwaway decks such as trial runs), unless --include-scratch is given or the deck is named.
Arguments:
deck Deck folder name under decks/. Default: $DECK, else every deck.
Options:
--all Build every deck, ignoring $DECK. Cannot be combined with a deck name.
--out <dir> Write a site folder (see above) instead of decks/<deck>/dist only. The
per-deck builds are still written to decks/<deck>/dist first.
--include-scratch
With --out, also build zz- decks into the site. Without --out every deck,
zz- ones included, is built already.
--with-exports Also export the deck to <deck>.pdf and <deck>.pptx beside index.html, so a
<Download file="<deck>.pdf"> button on a slide can link to them; with --out
the gallery links to them.
-h, --help Show this help.Guide: build and host.
deck preview
Serve the built output of a deck.
deck preview [deck] [--port <n>] [--host]Full help: deck preview --help
Usage: deck preview [deck] [--port <n>] [--host] Serves the built output of a deck from decks/<deck>/dist until you press Ctrl+C. Run `deck build <deck>` first. Arguments: deck Deck folder name under decks/. Default: $DECK, else "hello". Options: --port <n> Use this port and fail if it is taken. --host Listen on all network interfaces. -h, --help Show this help.
Guide: build and host.
deck shot
Write PNG screenshots of slides (and steps).
deck shot <deck> [slide] [--steps] [--brand <name>] [--out <dir>] [--scale <n>] [--json]Full help: deck shot --help
Usage: deck shot <deck> [slide] [--steps] [--brand <name>] [--out <dir>] [--scale <n>] [--json]
Renders a deck in static mode and writes a 1920x1080 PNG per slide, so you can look at the
slides, hidden ones included. Open the files to inspect them; --json lists them for scripts. A
slide that throws is still captured, showing its error, and the command exits with 1.
Arguments:
deck Deck folder name under decks/.
slide One slide, by id or 1-based number. Default: every slide, hidden ones too.
Options:
--steps One PNG per step instead of one per slide, named NN-id.stepK.png (K from 0).
Without it each slide is captured at its last step, with everything shown.
--brand <name> Render with brands/<name> instead of the deck config's brand.
--out <dir> Output folder. Default: .deck/shots/<deck>, or
.deck/shots/<deck>@<brand> with --brand.
--scale <n> Pixel density from 0.25 to 4; 2 writes 3840x2160 images. Default: 1.
--json Print { deck, brand, outDir, ok, files: [{ path, slide, number, step, hidden,
width, height, error }], pageErrors }. hidden is true for a slide with
`hidden: true`. error is what a broken slide threw, else null; pageErrors
are errors thrown while the deck loaded. A failure prints
{ ok: false, error: { type, message } } instead.
-h, --help Show this help.
Files are named 03-request-flow.png and 03-request-flow.step2.png. A run over the whole deck
removes older screenshots with that naming from the output folder first.Guide: screenshots.
deck diff
Show which slides changed visually against a git ref or baseline.
deck diff <deck> [--base <ref|dir>] [--brand <name>] [--steps] [--threshold <n>] [--out <dir>] [--fail-on-change] [--json]
deck diff <deck> --save-baseline [dir] [--brand <name>] [--steps] [--json]Full help: deck diff --help
Usage: deck diff <deck> [--base <ref|dir>] [--brand <name>] [--steps] [--threshold <n>]
[--out <dir>] [--fail-on-change] [--json]
deck diff <deck> --save-baseline [dir] [--brand <name>] [--steps] [--json]
Shows which slides of a deck changed visually, for pull requests and for agents checking their
own edits. It renders the deck now and at the base, matches slides by id (so a reordered deck
reports "moved", not a change in every slide) and compares them pixel by pixel.
Statuses: unchanged, changed, added, removed, moved (same pictures, another place in the order).
Arguments:
deck Deck folder name under decks/.
Options:
--base <x> What to compare against. A folder of PNGs made by `deck shot` (same names), else
a git ref. Default: HEAD in a git repository; outside one, the folder
--save-baseline writes. A ref is extracted with `git archive` into a temporary
folder that borrows this workspace's node_modules by link, so nothing is installed
and the repository is untouched; the folder is deleted afterwards. The ref is
rendered with its own packages (engine, kit, brands and Vite plugin), so a change
to a layout shows up too.
--brand <name> Render both with brands/<name> instead of the deck config's brand. The default
folders get an @<name> suffix.
--steps Compare every step, not only each slide's finished state. A baseline folder
must then hold step pictures (`deck shot <deck> --steps`).
--threshold <n> A picture counts as changed when more than this share of its pixels changed
visibly, from 0 to 1. Default: 0.
--out <dir> Report folder. Default: .deck/diff/<deck>[@<brand>].
--fail-on-change Exit with 1 when any slide changed, was added, removed or moved.
--save-baseline [dir]
Instead of comparing, render the deck into a baseline folder (default
.deck/baseline/<deck>[@<brand>]) to compare against later. This is the
way to use `deck diff` without git.
--json Print the report: { ok, deck, brand, base, baseKind, steps, threshold, outDir,
counts, slides: [{ id, status, beforeNumber, afterNumber, moved,
differenceRatio, before, after, compare, steps? }] } with absolute picture
paths; steps are { step, status, differenceRatio, before, after, compare }.
Pictures exist only for slides and steps that differ; the other paths are null.
--save-baseline prints { ok, deck, brand, baseline, files }. A failure prints
{ ok: false, error: { type, message } } instead.
-h, --help Show this help.
The report folder holds index.html (open it to see the changes), summary.md (a table for a pull
request comment, with relative picture links), report.json (the same as --json, with paths
relative to the folder) and the folders before/, after/ and compare/ with the pictures of what
differs. Exit code: 0 unless the command fails, or --fail-on-change finds a change.Guide: visual diff.
deck export
Export a deck to PDF, PNG and PowerPoint.
deck export <deck> [--pdf] [--png] [--pptx] [options]Full help: deck export --help
Usage: deck export <deck> [--pdf] [--png] [--pptx] [options]
Exports a deck rendered in static mode. Without a format flag it writes the PDF and the PPTX.
Formats:
--pdf One page per slide at its last step: Chromium's vector PDF, the 1920x1080
canvas on 1440x810 pt pages (20x11.25 in), fonts embedded, external and
slide-to-slide links, a bookmark and page label per slide, tagged for screen
readers, the deck title and the brand's language. Videos, iframes and apps
show their posters.
--png PNG screenshots, as `deck shot` writes them, in <out>/png.
--pptx PowerPoint: a theme and slide master per brand surface in use with the brand's
chrome and a slide number, the deck's layouts with placeholders placed and
styled as the deck sets them, editable text that wraps where the web wraps, the
brand's fonts embedded as static instances, shapes, gradients, pictures (JPEG
when opaque, each stored once), tables, charts and diagrams, speaker notes,
links and step animations; what PowerPoint cannot draw is a picture.
Options:
--steps One page or slide per step instead of one per slide.
--slides <list> Slides to export, such as 3,5-9 or cover,heat-map. Default: every slide that is
not hidden. A hidden slide you name here is exported: as an
ordinary page in the PDF and a PNG, still marked hidden in the PPTX.
--include-hidden Export hidden slides too (`hidden: true` in the frontmatter): as ordinary PDF
pages and PNGs, and as hidden slides in the PPTX (PowerPoint skips them in a
slide show). Without it they are left out and the summary says how many.
--brand <name> Render with brands/<name> instead of the deck config's brand.
--out <path> Output folder, or a .pdf or .pptx file when exporting that one format.
Default: .deck/exports/<deck> (or <deck>@<brand>).
--notes Add speaker notes pages (slide plus notes) after the slides in the PDF.
--scale <n> Pixel density of PNGs and of the PPTX's pictures, from 0.25 to 4.
Default: 1 for PNGs; 2 for PPTX pictures, at most 1920x1080 pixels each.
--mode <mode> PPTX mode: hybrid (native where faithful, a picture where not; default),
native (never a picture; reports what it dropped) or image (one picture per
slide with notes and link hotspots).
--outline-text Draw display-size text (60px and up: titles, statements, stats) as vector
shapes in the brand font at its exact axes, so it looks the same without the
font installed; the text stays in the title placeholder for outline view.
--no-embed-fonts Do not embed the brand's fonts in the PPTX; text names the brand's families,
with PANOSE and pitch so apps substitute a similar font.
--fonts <set> brand (default) or system: render and measure the deck in each family's
substitute (Arial, Georgia, Courier New...) so line breaks are right in apps
without the brand's fonts, such as Keynote or Google Slides.
--no-animations Do not turn step reveals into PowerPoint click animations.
--no-embed-media Keep videos as posters instead of embedding MP4 and MOV files.
--max-media-mb <n> The largest video to embed. Default: 50.
--dry-run List per slide what the PPTX draws natively and what it rasterises, and why;
writes nothing.
--verify Export the PPTX, validate it with the Open XML SDK (Docker), render it back to
pictures and compare each text block, chart, diagram, picture and table with the
web slide: where it landed, its size and its line count. Prints the worst
regions per slide and writes side-by-side pictures, crops of the regions that
differ and report.json to <out>/verify.
--strict With --verify, exit non-zero when any region differs or nothing was rendered.
--renderer <ids> Renderers for --verify, comma-separated: libreoffice (Docker, the export's
fonts installed), libreoffice-nofonts (Docker, no brand fonts and embedded
fonts removed: the substitutes), libreoffice-embedded (Docker, no brand fonts,
the file's embedded fonts), quicklook (macOS), keynote (macOS; opens Keynote,
needs Automation permission). Default: libreoffice,libreoffice-nofonts,quicklook.
--json Print the result as JSON.
-h, --help Show this help.Guides: PDF, PowerPoint.
deck lint
Check a deck for schema errors, overflow, contrast and off-brand values.
deck lint <deck> [--brand <name>] [--json]Full help: deck lint --help
Usage: deck lint <deck> [--brand <name>] [--json]
Checks a deck and exits non-zero when it finds errors.
1. Schema: the deck config, the brand and every slide file go through the same checks as
`deck build`, and each problem is reported with the file and its fix. When files fail, the
rendered checks are skipped, because the deck cannot render.
2. Rendered: the deck is opened in static mode and every step of every slide is measured.
3. Deck: rules over the whole deck, such as the order of layouts.
Rules (the minimum text size is 20px on the 1920x1080 canvas, from @deckster/brand):
schema Deck config, brand, frontmatter and MDX problems from the build pipeline.
render-error A slide threw while rendering, or the page threw an uncaught error. (error)
canvas-overflow Content extends past the edge of the 1920x1080 canvas and is clipped. (error)
container-overflow Content is larger than its own container and is clipped or spills out of it. (error)
text-truncated Text is cut short with an ellipsis or a line clamp, so part of it is not shown. (error)
text-overlap Two pieces of text are drawn over each other. (error)
min-font-size Text appears below the minimum type size (after transforms and SVG scaling) on the canvas. (error)
contrast Text contrast against its background is below WCAG AA (4.5:1, or 3:1 for large text). (error)
off-brand Colors, font families, type sizes or Tailwind numeric spacing that are not brand tokens. (error)
low-res-image A raster image has fewer pixels than the size it is drawn at on the 1x canvas. (warning)
table-too-dense A table does not fit its slide even at the smallest type the brand allows, so it must lose rows or columns. (error)
app-missing-poster An <AppFrame> has no poster to show in static mode, export and offline. (error)
app-missing An <AppFrame app> names an app the deck does not have. (error)
app-external-src An <AppFrame src> loads an external page and has no recorded fallback video. (warning)
video-cue-posters A cued <Video> has no poster per part, so its steps export as the same still. (warning)
export-missing-poster Live media without a poster exports as a stray frame, a picture or nothing. (warning)
chart-empty A chart draws no marks, or a line or area chart has a single point. (error)
chart-truncated-axis A bar chart sets `min` above zero without `truncate`, so its bars would lie. (error)
chart-too-many-series A chart draws more series in their own color than the brand's categorical palette has colors. (warning)
chart-too-many-categories A chart draws more bars, stages, rows or items than reads at a glance on a slide. (warning)
chart-pie-slices A <Donut> has more than 5 slices. (warning)
chart-no-highlight A chart with several series or many categories highlights nothing. (warning)
chart-topic-title A chart slide's title looks like a topic ("X by Y", "X vs Y", a short noun phrase), not a takeaway. (warning)
chart-missing-unit A chart's values have no unit and no caption naming the measure. (warning)
chart-legend-avoidable A chart shows a legend where direct labels would name the series. (warning)
chart-funnel-grows A <Funnel> has a stage that holds more than the stage before it. (warning)
broken-image An image failed to load, so the slide shows a broken image or nothing. (error)
diagram-too-dense A diagram shows more than 12 nodes or 16 edges at once, or its nodes are packed tighter than its gutters. (warning)
diagram-label-overlap A diagram edge label covers a node, a group label or another edge label. (warning)
diagram-unlabeled-edge A diagram edge without a label is ambiguous: it doubles another edge, or its siblings are labeled. (warning)
diagram-small-text Text in a diagram appears smaller than the brand's caption and label steps. (warning)
diagram-overlap A diagram draws nodes, groups or group labels on top of each other. (error)
diagram-edge-overlap Two diagram edges that share no node run along one line and read as one. (warning)
diagram-badge-overlap A diagram badge sits on an edge or its arrowhead. (warning)
diagram-long-word A diagram breaks a word inside a node title or edge label, or cuts a label short, because it is too long to fit. (warning)
diagram-card-missing A diagram part names a card the brand does not have, so it uses another card. (warning)
content-budget A layout slot holds more words, bullets or lines of code than the layout's budget. (error)
slot-content A slot holds content its layout's contract does not accept: a list where it takes no bullets, another kind than it lists, or more than the one table, chart or image it is for. (error)
missing-notes A slide has no speaker notes. (warning)
layout-repetition 3 or more slides in a row use the same layout on the same surface, counting shown slides only. (warning)
brand-layout-fallback A slide names a layout that only another brand defines, so it renders with that layout's kit fallback. (warning)
few-builds Fewer than 25% of a deck's chart, diagram and code slides (4 or more) build in steps; hidden slides are left out. (warning)
time-budget The slides' budgets add up to more than the talk's duration (the deck config's `duration`); hidden slides are left out. (error)
open-comments A slide has open review comments in .feedback/. (warning)
Mark decoration with aria-hidden="true" or data-decorative: the overflow and text rules skip it.
Options:
--brand <name> Lint the deck rendered with brands/<name> instead of the deck config's brand.
--json Print { deck, brand, ok, summary: { errors, warnings, slides, steps,
budgetSeconds }, findings } as JSON. Each finding has slide, file, step, rule,
severity, message, fix and selector. A failure (bad arguments, unknown deck,
browser problems) prints { ok: false, error: { type, message } } instead.
-h, --help Show this help.Guide: lint. Every rule: lint rules.
deck layouts
List the layouts available to a deck.
deck layouts [deck] [--brand <name>] [--summary] [--json]Full help: deck layouts --help
Usage: deck layouts [deck] [--brand <name>] [--summary] [--json]
Lists the layouts a slide can name in its `layout:` frontmatter: the engine's and the kit's, and
the ones the deck's brand brings in brands/<name>/layouts.ts (source "brand:<name>"). A brand's
layouts are the template the organisation expects, so prefer them when one fits; slides on a brand
layout fall back to its kit layout when the deck moves to a brand without it.
Arguments:
deck Deck folder name under decks/. Default: $DECK, else "hello", else the only deck.
Options:
--brand <name>
List the layouts of this brand instead of the deck config's, as `deck dev
--brand` renders it. A brand that does not load leaves its own layouts out, with
a warning on stderr (and in "warnings" with --json).
--summary One compact entry per layout, for a first look: name, the first sentence of its
description, default surface, title limit, slots (`*` required) with what each
accepts and its budget, and item lists with their counts (stats[2-4]). With
--json, { deck, warnings, layouts: [{ name, description, surface, titleMaxChars, slots:
{ <slot>: { accepts, required, maxWords?, maxBullets?, maxLines? } }, items:
[{ field, min, max }] }] }. The brand's layouts come first, under a heading that
names the brand, and each also has source ("brand:<name>") and fallback. Without
--summary the output is the full catalog.
--json Print { deck, slideFrontmatter, warnings, layouts }. slideFrontmatter is the JSON Schema of
the fields every slide takes. Each layout has name, source (a package, or
"brand:<name>" for a brand layout), fallback (the kit layout a brand layout falls
back to, else null), label (a brand layout's name in its source template, else
null), description,
frontmatter (JSON Schema of its own fields, with defaults), fields ({ required,
default, allowed, hint } by name), title ({ required, maxChars } or null),
surface (the default surface or null), slots ({ tag, description, required,
accepts } by name; body is the content outside slot tags), budget (maxWords
and maxBullets per slot, maxLines for code; the same in every brand), variants
([{ name, when: { fields, counts, filled }, budget, fields, limits }]: budget and
fields are what the variant tightens, limits { budget, fields } every limit a
slide that matches it is held to, field limits by path such as stats[].label),
example ({ frontmatter, body, mdx }) and pptx.
-h, --help Show this help.Every layout in full: its page under layouts.
deck icons
List the icon names every brand has.
deck icons [--brand <a,b>] [--search <text>] [--json]Full help: deck icons --help
Usage: deck icons [--brand <a,b>] [--search <text>] [--json]
Lists the icon names a deck can use in every brand it renders in. Each brand draws icons from one
Iconify set (its `icons.set`); a name works in all of those brands only when every set has it.
Use these names in <Icon name="...">, in a layout's `icon` field and for a diagram node's `icon`.
Options:
--brand <a,b> The brands to share names between, comma-separated brand folder names.
Default: every brand in brands/.
--search <text> Only names that contain the text, such as `--search arrow`.
--json Print { brands: [{ name, set }], count, icons: [...] }: every shared name
(narrowed by --search), where count is how many there are.
-h, --help Show this help.
Plain output prints the count and the first 120 names; narrow it with --search or
print them all with --json.The names every published brand shares: icons reference.
deck charts
List the chart and number components and when to use each.
deck charts [--json]Full help: deck charts --help
Usage: deck charts [--json]
Lists the chart and number components a slide can use, each with the messages it is the right
form for. Start from the message (what you are saying), then pick the form.
Options:
--json Print { shared, types, charts, messages, insight, spec }. shared describes
the props several charts take once ({ type, required, default, description }
by name). Each chart has name, kind, useWhen, messages (from: single number,
comparison, ranking, trend, change between two points, part-to-whole,
distribution, correlation, flow, exact values), avoid, data (the shape of its
rows), nulls (how it draws a missing value), shared (the names of the shared
props it takes), props (its own props, by name), limits (the numbers deck lint
holds it to), example (MDX), accessibility and native (the PowerPoint chart
PPTX export builds, or null). A prop name in neither shared nor props throws.
types lists the fields of RowStat, ProgressItem, TableColumn, SeriesInput,
FormatOptions, Highlight and each Annotation. messages lists the components
for each message, in catalog order (not ranked: read each one's useWhen
and avoid to choose); insight explains the props, highlight,
annotations, labels, axis honesty, steps, data, nulls, format, relative and
limits; spec names the attribute and module of each figure's serialisable
description.
-h, --help Show this help.Every chart’s props: charts reference.
deck diagrams
List the diagram components, node kinds, cards and animation primitives.
deck diagrams [--json]Full help: deck diagrams --help
Usage: deck diagrams [--json]
Lists the diagram components a slide can use and the parts inside them, with every prop, the node
kinds, the edge options, the cards and the animation primitives (packets, journeys, state changes,
focus), each with when to use it and an example, plus the limits deck lint holds diagrams to and
how to write diagrams in TSX. The cards listed are the five every brand has; `deck brand <name>`
lists a brand's own.
Options:
--json Print { shared, components, nodeKinds, edgeOptions, edgeFlow, cards, animation,
states, stateSynonyms, packetRoles, svgRoles, limits, longText, tsx, notes }. shared
describes the props several components take once ({ type, required, default,
description, values } by name), and longText says once what happens to long node
titles, subtitles and edge labels. Each component has name (the tag, as in deck
charts and deck components: "Flow"), role (diagram or part), inside (where a part
goes), useWhen, example (MDX), shared (the names of the shared props it takes),
props (its own props, by name), children, limits and, only where it has its own
rule, longText. A prop name in neither shared nor props, or a value outside its
values, fails the build naming the closest one.
Each node kind has kind, aliases, shape, icons (the icon name by icon set, or
null) and useWhen; edgeOptions and animation are lists of { name, useWhen,
example }; edgeFlow describes the fields of <Edge flow={{ ... }}>; cards has
resolution (how a node picks its card), standard (the five cards every brand has,
by name, with their look), custom (where a brand's own cards are listed: deck
brand <name>) and rules (what a card does not change); limits are the
node, edge, column, row and text-wrap numbers; tsx has the import line, how icons
and errors work, and an example slide.
-h, --help Show this help.Every diagram’s props: diagrams reference.
deck components
List the code, media, link and demo components with their props.
deck components [--json]Full help: deck components --help
Usage: deck components [--json]
Lists the MDX components a slide can use besides charts (deck charts) and diagrams (deck
diagrams): code, terminals, media, icons, links, live demos, steps and notes.
Options:
--json Print { shared, components, insight }, shaped like deck charts and deck
diagrams: shared is empty (no props are shared between these components). Each
component has name (the tag, such as "Code"), kind (code, media, icon, link,
app, motion or notes), useWhen, avoid, shared (always []), props (by name:
{ type, required, default, description }) and example (MDX). A prop name a component
does not list is refused with the closest one, at build time in MDX and when
the slide renders in TSX, and so is a missing required prop. insight explains
props, files, static mode, steps and the build warnings deck lint reports.
-h, --help Show this help.Every component’s props: components reference.
deck brand
Print a brand's resolved tokens, check a brand, or add one from git.
deck brand [name] [--json]
deck brand check <name> [--json]
deck brand add <source> [--force] [--json]Full help: deck brand --help
Usage: deck brand [name] [--json]
deck brand check <name> [--json]
deck brand add <source> [--force] [--json]
Prints a brand's resolved tokens, validates a brand without rendering a deck, or adds a brand
from a git repository.
deck brand [name] A summary of brands/<name>: families, type scale, spacing, each
surface's roles, with the small-text color of a role that reaches only
3:1, the diagram look (edges, groups, labels, geometry, text and kind
mappings) and every diagram card with its colors on the default
surface. Default: "default". With --json, every resolved token:
palette, surfaces (roles, text colors, backdrop, background layers,
code, diagram, diagramCards, data with the chart plate, charts,
shadows), gradients, typography, shape, spacing, logo, chrome, motion,
data, charts and diagram. diagram includes align, edges, groups, labels,
nodes, notes, kinds and cards. Cards gives geometry and typography
by name, the five standard cards first, with titleOwn (the brand wrote
the title type, on the card or its default card); a surface's
diagramCards holds each card's colors and shadow there, after any
recoloring the surface writes, with nodeFill (the fill is that
surface's diagram node color). Colors are hex, sizes canvas px.
It also prints the number and names of the brand's own layouts
(brands/<name>/layouts.ts). With --json, layouts has each
layout with its defaults filled in.
deck brand check <name> Loads and validates brands/<name> and prints every error and warning
with its field and fix. This includes its layouts: each must name a
kit or engine layout as its fallback, bind only slots and fields that
layout has, bind every one it requires, and not clash with a kit
layout's name. Exits with 1 when it has errors.
deck brand add <source> Copies a brand folder from a git repository into brands/<name>, named
by the brand's `name`. <source> is gh:owner/repo/<folder>#<ref>
(over https), a GitHub link (https://github.com/owner/repo/tree/<ref>/
<folder>), or any https or ssh address with the folder after //, such
as git@github.com:owner/repo.git//brands/acme#v2. Without #<ref>, the
default branch. It runs your git, so your credential helper, SSH key
and url.<base>.insteadOf rules apply. brand.ts and layouts.ts are read
as data and never run; the brand is checked before anything is
written, and only brand.ts, layouts.ts, images, fonts and documents
are copied (no other code, symlinks or package files). Fonts are not
installed: it prints the commands to run next (pnpm install in this
repository, or npm install for missing fonts), then deck brand check,
which checks what needs the fonts. Each git step that uses the
network may take up to 2 minutes.
Options:
--json For check: { brand, file, ok, errors, warnings }, each problem { path, message,
fix }. For add: { ok, brand, dir, source, commit, replaced, files, written,
skipped: [{ path, reason }], fonts: [{ name, version, installed }], warnings,
next }. A failure prints { ok: false, error: { type, message } }.
--force For add: replace a brand of the same name the workspace already has.
-h, --help Show this help.To install a brand from git, see Use a brand. See also Check a brand and Diagram look and cards for the diagram lines of the summary.
New in v0.7.0. With deck brand add <source> --json, a brand validation failure includes the file and its problems. See Layout checks during installation.
New in v0.8.0. The importer cleans SVG assets before installation and names files that it cannot read as SVG. SVG artwork during installation
deck new
Create a deck, or add a slide to one.
deck new <deck> [--title <text>] [--brand <name>] [--duration <length>]
deck new slide <deck> <id> [--layout <name>]
deck new app <deck> <name>Full help: deck new --help
Usage: deck new <deck> [--title <text>] [--brand <name>] [--duration <length>]
deck new slide <deck> <id> [--layout <name>]
deck new app <deck> <name>
Scaffolds a deck, adds a slide to one, or adds a mini app to one.
deck new <deck> Creates decks/<deck>/ with deck.config.ts (title, brand,
optional duration), and a first slide
that uses the title layout, from that layout's example. It passes
`deck lint` as created.
deck new slide <deck> <id> Creates slides/<id>.mdx from the layout's example (see
`deck layouts --json`) with the slide's own title, and
appends <id> to the slide list in deck.config.ts.
deck new app <deck> <name> Creates apps/<name>/ (index.html, main.tsx, app.tsx, app.css,
error-boundary.tsx), a React mini app wired to
@deckster/app-bridge, and prepares the deck
to build it. Show it with <AppFrame app="<name>" poster="..." />.
The deck builds it as an extra entry served at apps/<name>/.
Names are kebab-case: lowercase words joined by hyphens.
Options:
--title <text> The deck title for `deck new <deck>`. Default: the name as a sentence. At most
as long as the title layout allows (the error says how many characters).
--brand <name> The brand folder under brands/ the deck uses, written to deck.config.ts.
Default: default.
--duration <len> The talk length, such as 20m, 90s or 1m30s, written to deck.config.ts as
`duration` (the presenter's pacing and the time-budget lint rule).
--layout <name> The layout for the new slide, from the layout catalog. Run
`deck layouts` to list them. Default: default.
-h, --help Show this help.Guide: your first deck.
deck types
Write tsconfig.json so editors and tsc resolve @deckster imports.
deck typesFull help: deck types --help
Usage: deck types
Makes the workspace type-check in your editor and with `tsc`, without installing anything in it.
It writes tsconfig.json at the workspace root, and .deck/env.d.ts beside it:
- `@deckster/*` imports map to the framework's source files in this install;
- every other package a deck or brand imports (effect, react) resolves from the framework's own
dependencies;
- `*.mdx`, Node, Vite client and icon declarations are included.
Settings you already have in tsconfig.json are kept; only the paths `deck types` manages are
replaced: `@deckster/*`, `effect`, `react` and `react-dom` (with their subpaths), and `*`. A
tsconfig.json that `extends` another keeps its own compiler options. A tsconfig.json with
comments, or one that is a symbolic link, is left alone: remove the comments or replace the link.
The paths name this install's folders. Run `deck types` again after upgrading @deckster/cli, and
do not commit the result to a repository others install differently.
In the framework's own repository the packages are linked by the workspace and this does nothing.
Options:
-h, --help Show this help.Guide: workspace layout.
deck comments
List, resolve, reopen, add and prune review comments.
deck comments <deck> [--open | --resolved | --all] [--slide <id>] [--json]
deck comments resolve <deck> <id> [--note <text>] [--json]
deck comments reopen <deck> <id> [--json]
deck comments add <deck> <slide> --text <text> [--line <n>] [--step <n>] [--type <type>] [--json]
deck comments prune <deck> [--json]Full help: deck comments --help
Usage: deck comments <deck> [--open | --resolved | --all] [--slide <id>] [--json]
deck comments resolve <deck> <id> [--note <text>] [--json]
deck comments reopen <deck> <id> [--json]
deck comments add <deck> <slide> --text <text> [--line <n>] [--step <n>] [--type <type>]
[--json]
deck comments prune <deck> [--json]
Review comments on a deck: left in the browser in comment mode (press c in `deck dev`) or
by agents, stored in decks/<deck>/.feedback/<slide-id>.json and committed with the deck. Each
comment names the file, line and column to edit, so it can be fixed without the browser.
deck comments <deck> Lists open comments with file:line:column, anchor status, text and
screenshot (--resolved or --all for the others).
resolve <deck> <id> Marks a comment resolved, signed with $DECK_AUTHOR, else git's
user.name; --note says what changed. An already resolved
comment keeps its note.
reopen <deck> <id> Opens a resolved comment again; an open one is left as it is.
add <deck> <slide> Adds a comment on a slide, or with --line on that line of the slide
file, so agents can leave comments too.
prune <deck> Removes the comments of slides the deck config does not list.
Anchor status: ok (the line still reads as it did), moved (found elsewhere: line is the new
place), guessed (the line was reworded: line is the nearby line most like it; check it), lost
(nothing matches: line is null and location names only the file; read the excerpt around
anchor.originalLine and the screenshot), none (a comment on a whole slide).
box and region are in canvas pixels of the 1920x1080 slide (origin top left), not screen pixels;
the JSON says so in units.
Options:
--open, --resolved, --all Which comments to list. Default: --open.
--slide <id> Only this slide's comments; an id the deck does not have is a usage error
naming its slides.
--note <text> What changed, for resolve.
--text <text> The comment, for add.
--line <n> The line of the slide file the comment is about, for add.
--step <n> The step the comment is about, for add. Default: 0.
--type <type> fix, question or idea, for add.
--json Print JSON. The list is { deck, deckDir, counts: { open, resolved },
units: { box: "canvas-px", canvasWidth, canvasHeight }, comments }, each
comment with id, number, slide, slideNumber, step, status, type, target,
text, author, createdAt, updatedAt, location (file:line:column to edit; just
the file when line is null), file, line, column, anchor { status (ok, moved,
guessed, lost, none), originalLine, stamp, element
{ tag, text, cssPath } }, excerpt { startLine, lines }, screenshot, box,
region, resolution { note, by, at } and hash. resolve, reopen and add print
{ ok: true, changed, comment }, where changed is false when the comment was
already resolved (resolve) or open (reopen) and nothing was written; prune
prints { deck, removed: [{ slide, comments }] }.
A failure prints { ok: false, error: { type, message } }.
-h, --help Show this help.Guide: comments.
deck mcp
Print Claude Code and Codex configuration for a running deck dev --mcp.
deck mcp [deck] [--json]Full help: deck mcp --help
Usage: deck mcp [deck] [--json]
Prints ready-to-paste configuration that connects Claude Code and Codex to the MCP tools of a
running `deck dev <deck> --mcp`: the environment variable that holds the token, a `.mcp.json`
snippet and the `claude mcp add` command, and a `config.toml` section and the `codex mcp add`
command. The port and token are read from .deck/agent/<deck>/server.json, which the dev server
writes while it runs. Without a running server it says how to start one.
Arguments:
deck Deck folder name under decks/. Default: $DECK, else "hello".
Options:
--json Print { deck, url, tokenEnvVar, token, env, claude: { mcpJson, add }, codex:
{ configToml, add } }. A failure prints { ok: false, error: { type, message } }.
-h, --help Show this help.Guide: MCP tools.
deck agent
Check the agent CLIs (Claude Code, Codex): installed, version, signed in.
deck agent doctor [--agent claude|codex] [--json]Full help: deck agent --help
Usage: deck agent doctor [--agent claude|codex] [--json]
Checks the agent CLIs `deck dev --agent` and `deck present --agent` drive: whether each binary is
on the PATH, its version (and whether it is the version the adapter was tested with), and whether
it is signed in, with the command that fixes each problem. It runs `claude --version`,
`claude auth status --json`, `codex --version` and `codex login status`; it never prints an
e-mail address or a token.
The agent edits only the deck's content: slide files (.mdx, .tsx) in slides/ and media and data in assets/ and public/, in a working copy the editor copies into the deck; the slide list changes only through the deck tools, and anything else it writes is ignored.
Options:
--agent <name> Check one provider: claude or codex. Default: both.
--json Print { ok, providers: [{ provider, label, installed, version, testedVersion,
signedIn, account, problem: { kind, message, fix } | null, warnings }] }. A
failure prints { ok: false, error: { type, message } }.
-h, --help Show this help.
Exits with 1 when a checked provider has a problem.Guide: agent panel.