Skip to content

Command line

excalideck [serve] [deck.excalidraw] [--port <n>] [-o] [-q]
excalideck new <name> · build <talk.mjs> · dev <talk.mjs|deck.excalidraw>
excalideck check <deck.excalidraw> [--json] [--verbose]
excalideck render <deck.excalidraw> [--out <dir>] [--frame <n>] [--scale <n>]
excalideck record <deck.excalidraw> [--out <file.webm>] [--width <n>] [--hold <ms>]
excalideck busy [--json]
excalideck doctor [--json] [--offline]
excalideck --help | --version

excalideck <command> --help explains one command. A flag that a command can’t act on is a usage error that names the command that does take it.

Command
serve [deck] present a deck in the browser until Ctrl+C, reloading when the file changes. The default command. With no deck named, the one .excalidraw file in the folder; with none, the bundled example (Presenting a deck)
new <name> write <name>.mjs, a starter script, and build it into <name>.excalidraw
build <talk.mjs> run the script, then check what it wrote. Exits 1 if the check finds an error
dev <talk.mjs> build, check and serve, then build and check again on every save. Given a .excalidraw file instead, it checks and serves that
check <deck> layout problems slide by slide, and what each transition will do (The layout checker)
render <deck> a PNG per slide, plus sheet.png with all of them. Needs Playwright (PNGs and video)
record <deck> a .webm of the deck playing through. Needs Playwright
busy is the excalideck running here busy? It never is (below)
doctor can excalideck run here? One line per check, with a fix under each failure
Option Commands
--port <n> serve, dev the port to serve on (default 5190)
-o, --open serve, dev open it in your browser once it answers
-q, --quiet serve print only the first line, excalideck <version>: <url>
--json check, busy, doctor one JSON document on stdout, and nothing else
--verbose check every item in every list, and notes as well as warnings
--offline doctor don’t ask the registry for a newer version
-v, --version print the version
-h, --help print the help

render and record take the options listed on PNGs and video.

Code
0 fine
1 failed: check or build found an error, a file couldn’t be read, Playwright is missing
2 a usage error: an unknown command or flag, a bad value, or several decks in the folder and none named. The usage is printed after the message
3 busy: nothing is running here

Errors go to stderr as excalideck: <message>.

excalideck follows Ed’s CLI contract 1.0, so it answers the same questions as his other local tools. While serve runs, GET /api/health and GET /api/busy answer on its port, and ~/.excalideck/runtime.json says where it is. Presenting holds nothing a restart would lose, so busy is never true: it exits 0 while one is presenting, and 3 when none is.

serve listens on 127.0.0.1 only. There is no --host.

Variable
EXCALIDECK_HOME where runtime.json goes, instead of ~/.excalideck