Use this page to see which version of deckster these docs describe, upgrade to the latest one, and learn how a release is made.
The version these pages describe
These pages describe @deckster/cli 0.8.0. Check the version installed in your workspace with this command.
$ deck --version
0.8.0The guides mark new features with the version that introduced them. See the changelog for diagram design controls, brand layout fixes and updated authoring skills.
Published versions
npm view @deckster/cli versionsThe npm latest tag points at 0.8.0. Run npm view @deckster/cli dist-tags.latest to check it. 0.0.0-stage is not a release. There is a v0.2.0 tag and GitHub release but no 0.2.0 on npm.
Upgrade
The CLI needs Node 26 or later.
npm install --global @deckster/cli@latest
deck --versionThen run deck types in your workspace again: the tsconfig.json it writes points your editor at the framework source inside the installed CLI, so it goes stale when the CLI moves.
$ deck types
tsconfig.json
.deck/env.d.ts
Mapped 71 @deckster/* entry points. The paths name this install: run `deck types` again after upgrading @deckster/cli.For a first install, see quickstart.
What changed
0.8.0 adds diagram design controls, SVG sanitization for Git brand imports, and separate PowerPoint placeholders for two-content brand layouts. The changelog also covers static layout files and slide authoring in the live session brand.
0.7.0 adds 24 presentation patterns as well as first-slide previews and deck switching to deck dev and deck present. Brand imports protect credentials, recover interrupted replacements and check layouts before installation. The changelog links each change to its guide and pull request.
0.6.1 adds optional labels to schedule, quadrants and quiz. The dev server preserves the current slide and agent panel when a slide file is replaced in place. PowerPoint exports apply the image crop once, including in viewers that display the PNG copy of an SVG, and show the correct file-relative slide number in partial exports. On macOS, the presenter can prepare its app bundle when the copy tool lacks clone support. The brand layouts guide includes a playable Fieldnote example.
0.6.0 added three things:
- Twenty layouts.
recap,sources,definition,features,do-dont,faq,quiz,exercise,pricing,quadrants,risks,market,dashboard,conversation,before-after,voices,persona,schedule,statusandactions, taking the kit from 32 layouts to 52. Each has limitsdeck lintenforces and a PowerPoint mapping, anddeck layoutslists them. The descriptions of older layouts now send some uses to them, such as before and after photos tobefore-after. See the layouts reference. - Brand layouts. A brand can bring slide layouts of its own in
brands/<name>/layouts.ts, read as data likebrand.tsand each drawn at fixed boxes over the brand’s art. A deck on that brand uses one withlayout: <name>; a deck on another brand renders the layout’s kit fallback, anddeck lintwarns withbrand-layout-fallback.deck layoutslists them first and takes--brand,deck brand checkchecks them,deck export --pptxwrites each as a slide layout of its own, and thefieldnotebrand brings four. See brand layouts. deck brand add. Copies a brand folder from a git repository intobrands/with your owngit. It readsbrand.tsandlayouts.tsas data without running them, checks the brand before anything is written, copies only brand files, images, fonts, documents and licences, and names the font packages to install.--forcereplaces a brand the workspace already has. See use a brand.
The 0.6.0 notes also list changes and fixes. In the new layouts, label overrides are one labels object, the lit item is highlight, and footnotes stay visible while items reveal. deck lint’s contrast check measures uppercase labels as they are drawn, and off-brand resolves nested surfaces. Sequence diagrams measure their actors at the width they are drawn, so a title that wraps no longer overflows its box; a diagram is measured once more before the deck reports ready; and the brand importer refuses a template layout part name that is not a slide layout. The notes name two gaps: PowerPoint output for the new layouts was checked as XML, with the Open XML SDK validator and in LibreOffice, but not opened in PowerPoint or Keynote, and deck brand add was not tried against a private repository or end to end with a git@ address.
0.5.0 added one thing:
- Hidden slides.
hidden: truein a slide’s frontmatter keeps the slide in the deck and the build, and a talk skips it: next, previous, Home and End pass over it, pacing leaves its budget out, and the brand’s page numbers count shown slides only.deck exportleaves hidden slides out unless you pass--include-hidden, which writes them as hidden slides in the PowerPoint file, anddeck shot --jsonand the agent’s outline reporthidden. Three lint rules (time-budget,few-builds,layout-repetition) count shown slides only, and a deck whose every slide is hidden fails with an error. See hidden slides.
0.4.0 added two things:
- Diagram looks and cards. A brand’s
diagramsection sets the edges, group outlines and edge labels, and defines cards, named node styles; a slide picks one withcard="...", anddeck lintwarns withdiagram-card-missingwhen the brand lacks it. See diagram look and cards and pick a card. - Embed mode.
?embedshows a built deck in an iframe on another page, with previous and next controls and a link to the whole deck. See query parameters.
The five brands in the repository each got their own diagram look in 0.4.0, so a deck that uses a copy of one taken from v0.4.0 draws its diagrams differently than with a copy from v0.3.0. A brand without the new keys renders as before.
How a release is made
- The version in
packages/cli/package.jsonis set to the new number, onmain. - A maintainer publishes a GitHub release with the tag
v<version>on that commit. - The release starts the
publish.ymlworkflow. It refuses to publish unless the version is a stablex.y.z, the tag isvplus that version, the commit is onmain, and that commit had a successful CI run on a push tomain. A release marked as a pre-release is not published. - The workflow builds and packs the CLI with the framework source in
dist/framework, installs the exact tarball into an empty folder, and checks thatdeck --help,deck new smokeanddeck build smokework. - It publishes that tarball to npm with provenance, through npm trusted publishing: there is no npm token.
To propose a change for the next release, see contributing.