Skip to content

CLI reference

The kadal-deck command comes with @kadal/deck, so every deck already has it. Run it from the deck’s folder with npx kadal-deck <command>pnpm exec kadal-deck <command>yarn kadal-deck <command>bunx kadal-deck <command>, or through the scripts the starter defines:

Script Runs
npm run devpnpm devyarn devbun run dev kadal-deck dev
npm run buildpnpm buildyarn buildbun run build kadal-deck build
npm run exportpnpm exportyarn exportbun run export kadal-deck export
npm run publish:deckpnpm publish:deckyarn publish:deckbun run publish:deck kadal-deck publish

To have the command outside a deck too, install it with npm, Homebrew or Scoop (Package managers).

npx kadal-deck --helppnpm exec kadal-deck --helpyarn kadal-deck --helpbunx kadal-deck --help prints the options of the version you have installed, and npx kadal-deck --versionpnpm exec kadal-deck --versionyarn kadal-deck --versionbunx kadal-deck --version the version. This page describes 0.4.2.

Command What it does
new a deck from the starter, or a theme or addon package
import slidev a new deck converted from a Slidev project, with a report
import reveal a new deck converted from a reveal.js deck, with a report
theme eject copies the deck’s theme into the deck so you can change it
dev the deck with live reload; the phone remote; a tunnel
check lints the deck
format formats deck.mdx and the files it includes
info prints the reference: components, layouts, settings, keys…
build a static site in dist/ for any host
serve serves a build the way a static host would
ci writes a host’s deploy files
relay the phone remote’s relay for a build on a static host
screenshot PNG pictures of slides
export PDF, PNG, PPTX (pictures or editable) and Markdown
narrate bakes the speaker notes into spoken audio
login, logout, whoami the account on deck.kadal.cc (or another host)
publish builds the deck, uploads what changed, prints its address
thumbnail takes the dashboard’s picture of a live deck again, without publishing
media finds icons, emoji, stickers, GIFs, memes and Kadal media, with ready MDX
mcp a Model Context Protocol server for AI agents
Option Meaning
--dir <path>, -C <path> run in another folder, as if you had cd’d there (except theme eject, below)
--json print exactly one JSON object on stdout; progress and messages go to stderr. All commands but dev, build and mcp
--help, -h the usage

Flags take their value as --flag value or --flag=value. A switch is turned off with --no- (--no-install, --no-pdf). An unknown flag is a usage error (exit code 2), except on dev and build, which pass the flags they don’t know to Vite.

Terminal window
npm create @kadal/deck@latest my-talk
Terminal window
pnpm create @kadal/deck my-talk
Terminal window
yarn create @kadal/deck my-talk
Terminal window
bun create @kadal/deck my-talk

pnpm create @kadal/deck, yarn create @kadal/deck and bun create @kadal/deck work the same. It copies the starter into my-talk/ and prints the next steps; it does not install anything, so run npm installpnpm installyarn installbun install (or your package manager’s) next. Without a folder name it asks for one in a terminal and uses my-deck otherwise.

Option Meaning
--title <title> the deck’s title
--theme <name> a theme package instead, in kadal-theme-<name>/ (see Writing a theme)
--addon <name> an addon package instead

With npm, flags for the package go after --: npm create @kadal/deck@latest -- --theme aurorapnpm create @kadal/deck -- --theme aurorayarn create @kadal/deck -- --theme aurorabun create @kadal/deck -- --theme aurora.

Terminal window
npx kadal-deck new my-talk --title "Tides of Chennai"
npx kadal-deck new my-talk --pm pnpm --ci github-pages
npx kadal-deck new --theme aurora # ./kadal-theme-aurora
npx kadal-deck new --addon qr my-addon # ./my-addon
Terminal window
pnpm exec kadal-deck new my-talk --title "Tides of Chennai"
pnpm exec kadal-deck new my-talk --pm pnpm --ci github-pages
pnpm exec kadal-deck new --theme aurora # ./kadal-theme-aurora
pnpm exec kadal-deck new --addon qr my-addon # ./my-addon
Terminal window
yarn kadal-deck new my-talk --title "Tides of Chennai"
yarn kadal-deck new my-talk --pm pnpm --ci github-pages
yarn kadal-deck new --theme aurora # ./kadal-theme-aurora
yarn kadal-deck new --addon qr my-addon # ./my-addon
Terminal window
bunx kadal-deck new my-talk --title "Tides of Chennai"
bunx kadal-deck new my-talk --pm pnpm --ci github-pages
bunx kadal-deck new --theme aurora # ./kadal-theme-aurora
bunx kadal-deck new --addon qr my-addon # ./my-addon

Makes a deck from the starter and, unlike npm create, installs its packages. It never asks a question, which makes it the one to use in scripts and agents.

Option Meaning
--title <title> the deck’s title
--no-install copy only; don’t install
--pm npm|pnpm|yarn|bun the package manager to install with (default: the one running the command)
--ci <host[,host]> also write a host’s deploy files, as ci does
--yes, -y accepted for scripts; new asks nothing anyway
--theme <name> [dir] a theme package instead: the theme contract’s package.json, a stylesheet with every token in light and dark, a layout, a layer, a README and a preview deck
--addon <name> [dir] an addon package instead
--install with --theme or --addon: install the package’s dependencies too

new refuses a folder that isn’t empty (exit code 2).

Terminal window
npx kadal-deck import slidev ./my-old-talk # writes ./my-old-talk-kadal
npx kadal-deck import slidev slides.md --out talk --install
Terminal window
pnpm exec kadal-deck import slidev ./my-old-talk # writes ./my-old-talk-kadal
pnpm exec kadal-deck import slidev slides.md --out talk --install
Terminal window
yarn kadal-deck import slidev ./my-old-talk # writes ./my-old-talk-kadal
yarn kadal-deck import slidev slides.md --out talk --install
Terminal window
bunx kadal-deck import slidev ./my-old-talk # writes ./my-old-talk-kadal
bunx kadal-deck import slidev slides.md --out talk --install

Converts a Slidev project (its folder, or its slides.md) into a new Kadal Deck folder, writes IMPORT-REPORT.md there with whatever did not carry over, and runs check on the result. Nothing in the source project is changed, installed or run. The full story is in Migrate a Slidev deck.

Option Meaning
--out <dir>, -o <dir> where the new deck goes (default <folder>-kadal)
--force write into a folder that is not empty
--install install the new deck’s packages afterwards
--pm npm|pnpm|yarn|bun with --install, the package manager
Terminal window
npx kadal-deck import reveal ./my-reveal-talk # writes ./my-reveal-talk-kadal
npx kadal-deck import reveal index.html --out talk --install
Terminal window
pnpm exec kadal-deck import reveal ./my-reveal-talk # writes ./my-reveal-talk-kadal
pnpm exec kadal-deck import reveal index.html --out talk --install
Terminal window
yarn kadal-deck import reveal ./my-reveal-talk # writes ./my-reveal-talk-kadal
yarn kadal-deck import reveal index.html --out talk --install
Terminal window
bunx kadal-deck import reveal ./my-reveal-talk # writes ./my-reveal-talk-kadal
bunx kadal-deck import reveal index.html --out talk --install

Converts a reveal.js deck (its folder, or its index.html) into a new Kadal Deck folder the same way: sections and vertical stacks, fragments, backgrounds, notes, auto-animate, code steps and data-markdown sections, in theme: reveal with the reveal.js theme the page linked. Local images go into public/ and the page’s CSS into src/reveal.css; IMPORT-REPORT.md lists what did not carry over, and check runs on the result. No script in the page is run. It takes the same options as import slidev. The full story is in Coming from reveal.js.

Terminal window
npx kadal-deck theme eject # the deck's theme, into ./theme
npx kadal-deck theme eject --theme seriph # another theme than the headmatter's
npx kadal-deck theme eject --dir ./my-theme --force
npx kadal-deck theme eject -C talks/launch # a deck in another folder
Terminal window
pnpm exec kadal-deck theme eject # the deck's theme, into ./theme
pnpm exec kadal-deck theme eject --theme seriph # another theme than the headmatter's
pnpm exec kadal-deck theme eject --dir ./my-theme --force
pnpm exec kadal-deck theme eject -C talks/launch # a deck in another folder
Terminal window
yarn kadal-deck theme eject # the deck's theme, into ./theme
yarn kadal-deck theme eject --theme seriph # another theme than the headmatter's
yarn kadal-deck theme eject --dir ./my-theme --force
yarn kadal-deck theme eject -C talks/launch # a deck in another folder
Terminal window
bunx kadal-deck theme eject # the deck's theme, into ./theme
bunx kadal-deck theme eject --theme seriph # another theme than the headmatter's
bunx kadal-deck theme eject --dir ./my-theme --force
bunx kadal-deck theme eject -C talks/launch # a deck in another folder

Copies the deck’s theme (a package, or a built-in as a package-shaped folder) into the deck and points the headmatter at the copy (theme: ./theme). It also removes src/main.tsx’s import of a built-in’s stylesheet, so the two don’t fight. See Themes and backgrounds.

Option Meaning
--dir <path> where the copy goes (default ./theme)
--theme <name> eject this theme instead of the headmatter’s
--force replace a folder that is already there
-C <deck>, --deck <deck> the deck to work on (here --dir is the target, not the deck)
Terminal window
npx kadal-deck dev # http://localhost:5173/
npx kadal-deck dev --host # also on your network, for a phone
npx kadal-deck dev --host --https # a self-signed certificate: the phone's motion sensors work
npx kadal-deck dev --tunnel # an https address on the internet, password-guarded
npx kadal-deck dev --remote s3cret # on the network; presenter pages need the password
npx kadal-deck dev --port 3030 --open # any Vite flag
Terminal window
pnpm exec kadal-deck dev # http://localhost:5173/
pnpm exec kadal-deck dev --host # also on your network, for a phone
pnpm exec kadal-deck dev --host --https # a self-signed certificate: the phone's motion sensors work
pnpm exec kadal-deck dev --tunnel # an https address on the internet, password-guarded
pnpm exec kadal-deck dev --remote s3cret # on the network; presenter pages need the password
pnpm exec kadal-deck dev --port 3030 --open # any Vite flag
Terminal window
yarn kadal-deck dev # http://localhost:5173/
yarn kadal-deck dev --host # also on your network, for a phone
yarn kadal-deck dev --host --https # a self-signed certificate: the phone's motion sensors work
yarn kadal-deck dev --tunnel # an https address on the internet, password-guarded
yarn kadal-deck dev --remote s3cret # on the network; presenter pages need the password
yarn kadal-deck dev --port 3030 --open # any Vite flag
Terminal window
bunx kadal-deck dev # http://localhost:5173/
bunx kadal-deck dev --host # also on your network, for a phone
bunx kadal-deck dev --host --https # a self-signed certificate: the phone's motion sensors work
bunx kadal-deck dev --tunnel # an https address on the internet, password-guarded
bunx kadal-deck dev --remote s3cret # on the network; presenter pages need the password
bunx kadal-deck dev --port 3030 --open # any Vite flag

Starts Vite with the deck. Editing deck.mdx updates the slide you are on without a reload.

Option Meaning
--host listen on the network, so a phone on the same Wi-Fi can open the deck and the phone remote
--https serve a self-signed certificate (made with openssl); phones only allow motion sensors, which the remote’s air pointer uses, on https
--tunnel put the deck on the internet through a Cloudflare Quick Tunnel (needs cloudflared installed): prints an https address and a QR code. Always password-guarded: a password is made up and printed unless --remote <password> gives one
--remote [password] listen on the network like --host; with a password, the presenter, notes, notes editor and overview pages and the dev server’s save endpoints ask anyone not on this computer for it
any Vite flag passed through: --port, --open, --strictPort, --mode…

While it runs, the dev server also saves what you change in the browser back into your files: E opens the side editor (the slide’s source beside it, saved with Ctrl/⌘ S); notes edited in the presenter view, /notes, /overview and /notes-edit; <Drag> positions; drawings with drawings: { persist: files }; and {monaco-write} editors. A built deck saves none of these.

The starter’s vite.config.ts reads KADAL_DECK_API: KADAL_DECK_API=http://localhost:8797 npm run dev proxies /api to a room server you run and switches the deck’s live room on.

Terminal window
npx kadal-deck check
npx kadal-deck check --json # for scripts and agents
Terminal window
pnpm exec kadal-deck check
pnpm exec kadal-deck check --json # for scripts and agents
Terminal window
yarn kadal-deck check
yarn kadal-deck check --json # for scripts and agents
Terminal window
bunx kadal-deck check
bunx kadal-deck check --json # for scripts and agents

Lints the deck: YAML and frontmatter keys and types; unknown layouts, backgrounds, themes, transitions and components; MDX compile errors with file and line; broken src: includes and <<< snippets; missing images, video and favicon; the glossary; code-fence options; misspelt icons; settings that only work in the headmatter; and syntax from other tools that compiles but does nothing. Exit code 1 when there are errors; warnings alone exit 0.

Option Meaning
--no-compile skip compiling each slide’s MDX (faster)
Terminal window
npx kadal-deck format # deck.mdx and the files it includes
npx kadal-deck format parts/intro.mdx
npx kadal-deck format --check # write nothing; exit 1 if a file would change
Terminal window
pnpm exec kadal-deck format # deck.mdx and the files it includes
pnpm exec kadal-deck format parts/intro.mdx
pnpm exec kadal-deck format --check # write nothing; exit 1 if a file would change
Terminal window
yarn kadal-deck format # deck.mdx and the files it includes
yarn kadal-deck format parts/intro.mdx
yarn kadal-deck format --check # write nothing; exit 1 if a file would change
Terminal window
bunx kadal-deck format # deck.mdx and the files it includes
bunx kadal-deck format parts/intro.mdx
bunx kadal-deck format --check # write nothing; exit 1 if a file would change

Normalises separators and frontmatter, formats the YAML (comments and key order kept) and each slide’s Markdown with Prettier, and leaves code, notes, magic move, <style>, maths, ::slot:: markers, code groups and <<< imports exactly as written. A slide whose meaning would change keeps its text, and the command says which and why. The deck’s own Prettier config applies. The same formatter is the Prettier plugin.

Option Meaning
--check report only; exit code 1 when a file would change
Terminal window
npx kadal-deck info # the topics, with how many entries each has
npx kadal-deck info components Poll # one entry in full
npx kadal-deck info layouts --markdown # a whole topic, long form
npx kadal-deck info --search "two columns"
npx kadal-deck info themes # also the theme and addon packages this deck can see
Terminal window
pnpm exec kadal-deck info # the topics, with how many entries each has
pnpm exec kadal-deck info components Poll # one entry in full
pnpm exec kadal-deck info layouts --markdown # a whole topic, long form
pnpm exec kadal-deck info --search "two columns"
pnpm exec kadal-deck info themes # also the theme and addon packages this deck can see
Terminal window
yarn kadal-deck info # the topics, with how many entries each has
yarn kadal-deck info components Poll # one entry in full
yarn kadal-deck info layouts --markdown # a whole topic, long form
yarn kadal-deck info --search "two columns"
yarn kadal-deck info themes # also the theme and addon packages this deck can see
Terminal window
bunx kadal-deck info # the topics, with how many entries each has
bunx kadal-deck info components Poll # one entry in full
bunx kadal-deck info layouts --markdown # a whole topic, long form
bunx kadal-deck info --search "two columns"
bunx kadal-deck info themes # also the theme and addon packages this deck can see

The engine’s reference, from the same catalog as the component reference. Topics: components, layouts, backgrounds, themes, transitions, clicks, code, deck, slide, keys, routes, live, cli, exit.

Option Meaning
--search <words> entries in any topic matching the words
--markdown print a topic as Markdown
--json the data
Terminal window
npx kadal-deck build # dist/
npx kadal-deck build --base /talks/tides/ # for https://example.com/talks/tides/
npx kadal-deck build intro.mdx deep-dive.mdx # dist/intro/, dist/deep-dive/ and a page listing them
Terminal window
pnpm exec kadal-deck build # dist/
pnpm exec kadal-deck build --base /talks/tides/ # for https://example.com/talks/tides/
pnpm exec kadal-deck build intro.mdx deep-dive.mdx # dist/intro/, dist/deep-dive/ and a page listing them
Terminal window
yarn kadal-deck build # dist/
yarn kadal-deck build --base /talks/tides/ # for https://example.com/talks/tides/
yarn kadal-deck build intro.mdx deep-dive.mdx # dist/intro/, dist/deep-dive/ and a page listing them
Terminal window
bunx kadal-deck build # dist/
bunx kadal-deck build --base /talks/tides/ # for https://example.com/talks/tides/
bunx kadal-deck build intro.mdx deep-dive.mdx # dist/intro/, dist/deep-dive/ and a page listing them

Builds a static site any host can serve. Every route gets its own index.html, and 404.html and _redirects are written, so /presenter, /join and /remote work on hosts without rewrite rules. The page’s <head> comes from the headmatter: title, info, author, lang, favicon and seoMeta. More in Build and host anywhere.

Option Meaning
--base <path> where the deck will be served, e.g. /talks/tides/ (Vite’s own flag)
--out <dir> where the build goes (default dist/; Vite’s --outDir works too)
--without-notes leave the speaker notes out: no notes modules at all
--download, --no-download also print dist/deck.pdf for the deck’s Download button (download: true in the headmatter does this too), or skip it
--port <n> the port of the preview server the PDF is printed from
--pwa, --no-pwa make an installable app that presents offline (pwa: true does this too)
--bundle-remote-assets download remote images, video and fonts into the build (bundleRemoteAssets: true)
any Vite flag passed through

--download, seoMeta.ogImage: auto and a PWA’s icons need Playwright’s Chromium (npm i -D playwright && npx playwright install chromiumpnpm add -D playwright && pnpm dlx playwright install chromiumyarn add -D playwright && yarn dlx playwright install chromiumbun add -D playwright && bunx playwright install chromium).

Terminal window
npx kadal-deck serve # dist/ on http://127.0.0.1:4173/
npx kadal-deck serve dist --host 0.0.0.0 --port 8080
Terminal window
pnpm exec kadal-deck serve # dist/ on http://127.0.0.1:4173/
pnpm exec kadal-deck serve dist --host 0.0.0.0 --port 8080
Terminal window
yarn kadal-deck serve # dist/ on http://127.0.0.1:4173/
yarn kadal-deck serve dist --host 0.0.0.0 --port 8080
Terminal window
bunx kadal-deck serve # dist/ on http://127.0.0.1:4173/
bunx kadal-deck serve dist --host 0.0.0.0 --port 8080

Serves a build the way a static host would: at the base it was built for, every route answered, byte ranges for video, a CDN’s cache headers. Use it to check a build, try the offline app, or as a container’s server. Ctrl C stops it.

Option Meaning
[folder] the build to serve (default dist)
--port <n> default 4173
--host <addr> default 127.0.0.1; 0.0.0.0 in a container
--base <path> the path it is served under (default: read from the build)
Terminal window
npx kadal-deck ci github-pages
npx kadal-deck ci netlify,docker --force
Terminal window
pnpm exec kadal-deck ci github-pages
pnpm exec kadal-deck ci netlify,docker --force
Terminal window
yarn kadal-deck ci github-pages
yarn kadal-deck ci netlify,docker --force
Terminal window
bunx kadal-deck ci github-pages
bunx kadal-deck ci netlify,docker --force

Writes what a host needs to build and serve the deck, fitted to its package manager (from the lockfile) and its folder in the repository. A deck whose build needs Chromium (download: true, ogImage: auto, pwa) gets the step that installs it. Each recipe prints what to do next.

Host Writes
github-pages .github/workflows/deploy-deck.yml at the repository root, building with --base /<repo>/ (or / for <owner>.github.io)
netlify netlify.toml: the build, dist/, the single-page rewrite, cache headers
vercel vercel.json, the same for Vercel
cloudflare wrangler.jsonc for Workers static assets (npx wrangler deploypnpm dlx wrangler deployyarn dlx wrangler deploybunx wrangler deploy after the build)
docker Dockerfile, nginx.conf and .dockerignore: builds in Node, serves dist/ from nginx on port 8080

gh, pages, cf and workers are accepted as short names. Existing files are left alone unless you pass --force.

Terminal window
npx kadal-deck relay # ws://<this machine>:4174, a password printed
npx kadal-deck relay --tunnel # a wss:// address on the internet
npx kadal-deck relay --password s3cret --port 9000
Terminal window
pnpm exec kadal-deck relay # ws://<this machine>:4174, a password printed
pnpm exec kadal-deck relay --tunnel # a wss:// address on the internet
pnpm exec kadal-deck relay --password s3cret --port 9000
Terminal window
yarn kadal-deck relay # ws://<this machine>:4174, a password printed
yarn kadal-deck relay --tunnel # a wss:// address on the internet
yarn kadal-deck relay --password s3cret --port 9000
Terminal window
bunx kadal-deck relay # ws://<this machine>:4174, a password printed
bunx kadal-deck relay --tunnel # a wss:// address on the internet
bunx kadal-deck relay --password s3cret --port 9000

The phone remote for a deck built with kadal-deck build and served from a static host, which has neither a live room nor a dev server. The deck names the relay with remote: { relay: "wss://…" } in its headmatter, or the presenter view’s address carries ?relay=wss://…. Details in Remote relay.

Option Meaning
--port <n> default 4174
--host <addr> default 0.0.0.0 (on the network)
--password <p> the password the presenter view gives once; else KADAL_DECK_RELAY_PASSWORD, else one is made up and printed
--tunnel through a Cloudflare Quick Tunnel (needs cloudflared); prints the wss:// address a deck on https needs
Terminal window
npx kadal-deck screenshot # every slide into screenshots/
npx kadal-deck screenshot --slide 1 --slide 5 # by number, counting from 1
npx kadal-deck screenshot --slide 3-6 # a range
npx kadal-deck screenshot --slide results # by slide id
npx kadal-deck screenshot --scheme dark --width 1920
Terminal window
pnpm exec kadal-deck screenshot # every slide into screenshots/
pnpm exec kadal-deck screenshot --slide 1 --slide 5 # by number, counting from 1
pnpm exec kadal-deck screenshot --slide 3-6 # a range
pnpm exec kadal-deck screenshot --slide results # by slide id
pnpm exec kadal-deck screenshot --scheme dark --width 1920
Terminal window
yarn kadal-deck screenshot # every slide into screenshots/
yarn kadal-deck screenshot --slide 1 --slide 5 # by number, counting from 1
yarn kadal-deck screenshot --slide 3-6 # a range
yarn kadal-deck screenshot --slide results # by slide id
yarn kadal-deck screenshot --scheme dark --width 1920
Terminal window
bunx kadal-deck screenshot # every slide into screenshots/
bunx kadal-deck screenshot --slide 1 --slide 5 # by number, counting from 1
bunx kadal-deck screenshot --slide 3-6 # a range
bunx kadal-deck screenshot --slide results # by slide id
bunx kadal-deck screenshot --scheme dark --width 1920

Builds the deck, opens it in headless Chromium and writes one PNG per slide, every click revealed: screenshots/slide-001.png, slide-002.png… Needs Playwright’s Chromium. Slide numbers count from 1, the same as the deck’s counter and export --range; the URL hash (#/1) still counts from 0.

Option Meaning
--slide <n|id|all> which slides: a number counting from 1, a range (3-6) or a slide id, repeated or comma-separated (default all); 0 still works, with a note
--out <dir> default screenshots/
--width <px> the picture’s width (default 1280; the slide’s own is 1920)
--scheme light|dark the colour scheme
--theme <name> one of the deck’s themes
--dev use a dev server instead of building
--url <url> photograph a deck that is already running
Terminal window
npx kadal-deck export # export/<name>.pdf
npx kadal-deck export --png --pptx # also PNGs and an image PowerPoint file
npx kadal-deck export --format pptx-editable # PowerPoint text, shapes and tables you can edit
npx kadal-deck export --range 1,3-5 --dark
Terminal window
pnpm exec kadal-deck export # export/<name>.pdf
pnpm exec kadal-deck export --png --pptx # also PNGs and an image PowerPoint file
pnpm exec kadal-deck export --format pptx-editable # PowerPoint text, shapes and tables you can edit
pnpm exec kadal-deck export --range 1,3-5 --dark
Terminal window
yarn kadal-deck export # export/<name>.pdf
yarn kadal-deck export --png --pptx # also PNGs and an image PowerPoint file
yarn kadal-deck export --format pptx-editable # PowerPoint text, shapes and tables you can edit
yarn kadal-deck export --range 1,3-5 --dark
Terminal window
bunx kadal-deck export # export/<name>.pdf
bunx kadal-deck export --png --pptx # also PNGs and an image PowerPoint file
bunx kadal-deck export --format pptx-editable # PowerPoint text, shapes and tables you can edit
bunx kadal-deck export --range 1,3-5 --dark

Builds the deck and prints it in headless Chromium into export/. Every flag is in the export reference, and Export to PDF, PNG and PPTX walks through it.

Option Meaning
--format pdf,png,pptx,pptx-editable,md the formats (default pdf)
--png, --pptx, --pptx-editable, --md, --no-pdf the same as switches
--range 1,3-5 some slides, 1-based, in play order; 8- runs to the end
--dark, --scheme light|dark the colour scheme
--with-clicks, --no-with-clicks a page per click step, or one per slide
--omit-background transparent pages
--no-with-toc no PDF bookmarks
--vector-pdf print with the browser alone (all vector; effects vary by viewer)
--per-slide load each slide on its own, for very large decks
--out <dir>, --output <name> the folder (default export/) and the files’ base name
--scale <n> capture scale (default 2)
--timeout <ms>, --wait <ms>, --wait-until … page-load limits
--executable-path <path> a Chrome or Chromium of your own
--url <url>, --port <n> export a running deck; the preview server’s port
--posters, --refresh-posters, --no-posters stand-in pictures for embedded pages
Terminal window
npx kadal-deck narrate --setup # once: installs kokoro-js (about 400 MB) into the deck
npx kadal-deck narrate # speak every notes segment into public/narration/
Terminal window
pnpm exec kadal-deck narrate --setup # once: installs kokoro-js (about 400 MB) into the deck
pnpm exec kadal-deck narrate # speak every notes segment into public/narration/
Terminal window
yarn kadal-deck narrate --setup # once: installs kokoro-js (about 400 MB) into the deck
yarn kadal-deck narrate # speak every notes segment into public/narration/
Terminal window
bunx kadal-deck narrate --setup # once: installs kokoro-js (about 400 MB) into the deck
bunx kadal-deck narrate # speak every notes segment into public/narration/

Bakes the narration: each [click] part of every slide’s notes is spoken by Kokoro-82M on your computer and saved as MP3 or Opus (with ffmpeg) or WAV, indexed in public/narration.json. Clips that exist are skipped.

Option Meaning
--voice <id> a Kokoro voice (default af_heart)
--dtype fp32|fp16|q8|q4|q4f16 the model’s precision
--force speak every clip again
--setup install kokoro-js into the deck first
Terminal window
npx kadal-deck login
Terminal window
pnpm exec kadal-deck login
Terminal window
yarn kadal-deck login
Terminal window
bunx kadal-deck login

Prints a short code and opens deck.kadal.cc in your browser; sign in, approve the code for a workspace, and the terminal receives an API token. It is saved in ~/.config/kadal-deck/credentials.json (or under $XDG_CONFIG_HOME). You never type a password into the terminal. --host <url> signs in to another Kadal Deck host.

Forgets the saved token on this computer. The token itself stays valid until you revoke it on the dashboard’s API tokens page.

Prints who is signed in, on which host and workspace. Exit code 3 when nobody is.

Terminal window
npx kadal-deck publish
npx kadal-deck publish --slug q3-review --title "Q3 review" --without-notes
Terminal window
pnpm exec kadal-deck publish
pnpm exec kadal-deck publish --slug q3-review --title "Q3 review" --without-notes
Terminal window
yarn kadal-deck publish
yarn kadal-deck publish --slug q3-review --title "Q3 review" --without-notes
Terminal window
bunx kadal-deck publish
bunx kadal-deck publish --slug q3-review --title "Q3 review" --without-notes

Builds the deck for its address, uploads only the files the host doesn’t already have, makes the new version current and prints the URL: https://decks.kadal.cc/@<handle>/<slug>/. The first publish of a slug creates the deck; every later one adds a version. See The hosted service.

Option Meaning
--slug <slug> the deck’s slug in the workspace (default: the folder’s name)
--title <title> the deck’s title (default: the headmatter’s title)
--workspace <handle> another workspace you belong to (default: the one you signed in to)
--without-notes publish without the speaker notes
--no-thumbnail skip the picture of slide 1 the dashboard shows in its lists
--pwa keep the deck’s offline service worker (left out on the host by default)
--host <url> another host than deck.kadal.cc

The picture is slide 1 as visitors see it: with the deck’s pro/ background or layout when its workspace has the Pro library, and in its colorScheme. A deck that follows the viewer (auto, the default) is pictured in both light and dark, and the dashboard shows the one in its own theme.

Terminal window
npx kadal-deck thumbnail # this folder's deck
npx kadal-deck thumbnail --slug q3-review
npx kadal-deck thumbnail --all # every published deck in the workspace
npx kadal-deck thumbnail --all --out pictures/ # save the PNGs, send nothing
Terminal window
pnpm exec kadal-deck thumbnail # this folder's deck
pnpm exec kadal-deck thumbnail --slug q3-review
pnpm exec kadal-deck thumbnail --all # every published deck in the workspace
pnpm exec kadal-deck thumbnail --all --out pictures/ # save the PNGs, send nothing
Terminal window
yarn kadal-deck thumbnail # this folder's deck
yarn kadal-deck thumbnail --slug q3-review
yarn kadal-deck thumbnail --all # every published deck in the workspace
yarn kadal-deck thumbnail --all --out pictures/ # save the PNGs, send nothing
Terminal window
bunx kadal-deck thumbnail # this folder's deck
bunx kadal-deck thumbnail --slug q3-review
bunx kadal-deck thumbnail --all # every published deck in the workspace
bunx kadal-deck thumbnail --all --out pictures/ # save the PNGs, send nothing

Takes the picture of slide 1 again for the version that is live, without publishing a new one: the build is read from the host, so it needs no deck folder (only Playwright and Chromium). Use it after an engine update changes how pictures are taken, or for a deck whose picture shows the wrong background or the wrong light or dark.

Option Meaning
--slug <slug> the deck (default: this folder’s, from its last publish or pull)
--all every published deck in the workspace
--out <dir> save <slug>.png (and <slug>-dark.png) there instead of sending them
--workspace <handle> another workspace you belong to
--host <url> another host than deck.kadal.cc
Terminal window
npx kadal-deck media search icon rocket
npx kadal-deck media search gif "mind blown" --limit 4
npx kadal-deck media search emoji party --set noto-animated
npx kadal-deck media search kadal "ship it" --json
npx kadal-deck media search store seigaiha --type pattern
npx kadal-deck media trending gif
npx kadal-deck media list --kind sticker # your workspace's uploads
npx kadal-deck media add "logo" --to public/stickers/
Terminal window
pnpm exec kadal-deck media search icon rocket
pnpm exec kadal-deck media search gif "mind blown" --limit 4
pnpm exec kadal-deck media search emoji party --set noto-animated
pnpm exec kadal-deck media search kadal "ship it" --json
pnpm exec kadal-deck media search store seigaiha --type pattern
pnpm exec kadal-deck media trending gif
pnpm exec kadal-deck media list --kind sticker # your workspace's uploads
pnpm exec kadal-deck media add "logo" --to public/stickers/
Terminal window
yarn kadal-deck media search icon rocket
yarn kadal-deck media search gif "mind blown" --limit 4
yarn kadal-deck media search emoji party --set noto-animated
yarn kadal-deck media search kadal "ship it" --json
yarn kadal-deck media search store seigaiha --type pattern
yarn kadal-deck media trending gif
yarn kadal-deck media list --kind sticker # your workspace's uploads
yarn kadal-deck media add "logo" --to public/stickers/
Terminal window
bunx kadal-deck media search icon rocket
bunx kadal-deck media search gif "mind blown" --limit 4
bunx kadal-deck media search emoji party --set noto-animated
bunx kadal-deck media search kadal "ship it" --json
bunx kadal-deck media search store seigaiha --type pattern
bunx kadal-deck media trending gif
bunx kadal-deck media list --kind sticker # your workspace's uploads
bunx kadal-deck media add "logo" --to public/stickers/

media search looks for something to put on a slide and prints each result with the MDX to paste and its credit. The kinds are icon (every free Iconify set), emoji, sticker, gif, meme (finished memes), template (Imgflip’s meme templates, ready for your captions), kadal (Kadal’s own stickers, GIF loops, meme templates and illustrations, free in any Kadal deck) and store (Kadal Store’s shelf: patterns, wallpapers, music, sound effects, video, Lottie animations, 3D models, colour grades and more, free to place in any deck under the Kadal Deck licence). A pattern or a wallpaper from the store is printed a second time as the slide’s frontmatter, to go behind it. media trending <kind> shows what is popular now. GIFs, stickers and memes from KLIPY are fetched straight from your computer, as KLIPY asks, so sign in first with npx kadal-deck loginpnpm exec kadal-deck loginyarn kadal-deck loginbunx kadal-deck login.

media list and media add work on your workspace’s own uploads: list them, or download one into the deck.

Option Meaning
--limit <n> how many results (search and trending)
--json the results as JSON, for scripts
--set <set> for emoji: fluent, noto, noto-animated or twemoji
--type <type> for store: one kind (pattern, music, sfx, lottie, model, lut …)
--kind <kind> for list: only one kind of upload

Every result carries its credit, so a deck never needs a hand-written credit line; credits: true in the headmatter adds a credits slide that lists them.

Terminal window
npx -y @kadal/deck mcp # in a deck's folder
npx -y @kadal/deck mcp --dir ~/talks/tides
Terminal window
pnpm dlx @kadal/deck mcp # in a deck's folder
pnpm dlx @kadal/deck mcp --dir ~/talks/tides
Terminal window
yarn dlx @kadal/deck mcp # in a deck's folder
yarn dlx @kadal/deck mcp --dir ~/talks/tides
Terminal window
bunx @kadal/deck mcp # in a deck's folder
bunx @kadal/deck mcp --dir ~/talks/tides

A Model Context Protocol server on stdio, for Claude, Cursor, VS Code and other agents: it reads and edits the deck, checks it, renders slides to pictures, builds, exports and publishes. Setup for each client is in AI agents and MCP.

Option Meaning
--dir <path> the deck folder it works in (default: where it starts)
--allow-outside let its tools read and write outside that folder (off by default)
Code Meaning
0 success (check: no errors; warnings allowed)
1 the command failed: check found errors, a build failed, the host refused
2 usage error: an unknown command or flag, a bad value, new into a folder that isn’t empty
3 not signed in, or the token was rejected: run kadal-deck login
4 a missing prerequisite: no deck.mdx here, dependencies not installed, no Playwright or Chromium

With --json, a failure prints { "ok": false, "error": { "code", "message", "exitCode" } }.

Variable Meaning
KADAL_DECK_TOKEN an API token; wins over the saved login. How CI publishes
KADAL_DECK_HOST another host (default https://deck.kadal.cc)
KADAL_DECK_RELAY_PASSWORD the relay’s password when --password is not given
XDG_CONFIG_HOME where the login is saved (default ~/.config)

Send feedback