In six steps you install the deck CLI, create a workspace with one deck, open it in the browser with hot reload, install the browser the checks use, and check the deck with deck lint. You need Node.js 26 or later.
Create and open a deck
-
Install the CLI from npm:
npm install --global @deckster/clinpm prints two
npm warn ERESOLVE overriding peer dependencywarnings aboutvite, from@tailwindcss/viteand@vitejs/plugin-react: the CLI bundles its own Vite build, and the install succeeds.pnpm add --global @deckster/cliworks too. Check the version:$ deck --version 0.8.0 -
Make a folder for your talks and go into it:
mkdir talks && cd talksThis folder is your workspace. The CLI works in the nearest folder at or above the current one that has a
decks/folder, and in the current folder when there is none, so make the folder first. From your home folder or/, a command such asdeck devstops with this message instead:/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. -
Create a deck with a title and a talk length:
$ deck new launch-review --title "Launch review" --duration 20m decks/launch-review/deck.config.ts decks/launch-review/slides/title.mdx Next: run `deck dev launch-review`. For editor type checking, run `deck types` once (again after upgrading @deckster/cli).Deck names are kebab-case. The title must fit the
titlelayout, which allows 36 characters. If you try a longer title, the command refuses it and suggests a shorter one:$ deck new board-update --title "A very long title that goes on and on and on and on and on and on and on and on" --title is 79 characters, but the title layout allows a title of at most 36. Shorten it, for example to "A very long title that goes on and o". Run `deck new --help` for the usage. -
Serve it:
$ deck dev launch-review ➜ Local: http://localhost:5173/ ➜ press h + enter to show helpOpen the URL. Your new deck uses the CLI’s
defaultbrand, as shown here. The example gallery uses Fieldnote.
The server takes the first free port from 5173 (
--port <n>picks one and fails if it is taken) and reloads the slide when you save a file. The first run can also print a line about Vite optimizing dependencies. Typeqand press Enter, or press Ctrl+C, to stop it. -
Install Chromium once.
deck lint,deck shot,deck diffanddeck exportrender the deck in Playwright’s Chromium, and without it they stop with the command to run (the path is cut here):$ deck lint launch-review Could not start Chromium: browserType.launch: Executable doesn't exist at ... Install the browser with `npx playwright@1.65.0 install chromium`.Run that command:
npx playwright@1.65.0 install chromiumOutside a project that depends on Playwright, it first prints a warning box suggesting
npm install; the download goes ahead anyway. It fetches Chrome for Testing, FFmpeg and Chrome Headless Shell into Playwright’s own cache, once per machine. -
Check the deck:
$ deck lint launch-review launch-review: no problems in 1 slide (1 step checked).
To work with several decks from the same folder, see how deck dev picks a deck.
What deck new wrote
Two files, and nothing else: no package.json, no node_modules to install.
- talks/
- decks/
- launch-review/
- deck.config.ts
- slides/
- title.mdx
- launch-review/
- decks/
deck.config.ts names the deck’s title, its brand, the talk length and the slides in order:
import { defineDeck } from '@deckster/engine/config';
export default defineDeck({
title: 'Launch review',
brand: 'default',
duration: '20m',
slides: ['title'],
});slides/title.mdx is the first slide, made from the title layout’s example. The frontmatter picks the layout, the body is the subtitle, and <Notes> holds what you say:
---
layout: title
title: Launch review
---
One sentence that says what this talk is for.
<Notes>
Say what the audience should do or believe when the talk ends.
</Notes>--brand <name> on deck new writes another brand folder name instead of default. Only default ships with the CLI; Use a brand shows how to add others. Once you run commands, the workspace also gets a .deck/ folder for screenshots and exports; Workspace layout explains each folder.
Type checking in your editor
Optional. Run deck types once in the workspace so your editor and tsc resolve the @deckster/* imports in deck.config.ts and TSX slides:
$ 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.The paths it writes point into your global install, so run it again after upgrading the CLI, and do not commit tsconfig.json to a repository that others install differently.
Next
Your first deck adds slides, builds, speaker notes and an export to this deck. To let an agent write the next one, install the skills. Every command and flag is in the CLI reference.