LiminaliaLiminalia
Technical docs: Start with the command line

Start with the command line

A Liminalia project is made of nothing but text scenarios (.lim), assets and settings files (liminalia.json and cast.json). Instead of using Studio, you can write it in your usual editor or with an AI agent, and run it with the lim command. The files are the same as in a project made in Studio, so you can switch between the two at any point.

To start in Studio, see the tutorial.

Create a project and run it

With Node.js (22.23.4 or later in the 22 line, 24.22.1 or later in the 24 line, or 26.12.1 or later), you can create one like this (lim is still being prepared for release).

npm install -g @liminalia/cli
lim new my-game --title "My Story"
cd my-game
lim dev

Open the URL it shows in your browser, and the game runs. When you edit the script and save it, the game you're playing shows “The script changed.” Click “Reload from here” (⇧R) to go on from the current page with the edited script (it isn't shown on the title screen; the next playthrough you start uses the edited script). lim studio opens the same project in Studio.

The first few lines

Open scenario/start.lim, and you'll see lines like these. (In an English terminal, or with --lang en, lim new makes the project from the English sample story, Waiting for Stars.)

@bg hill_dusk.webp time=1s
@window show
Akari "Made it!"
@chara Akari smile at=left
At the top of the slope stands a small observatory.
  • Lines that start with @ are commands. They're all listed in the command reference.
  • A line with a speaker name followed by quotation marks (Akari "Hello.") or the Japanese corner brackets 「」 is dialogue, and any other line is narration. One line is one click.
  • {r 漢字|かんじ} is ruby, small reading aids shown above Japanese characters. The other notations are in Writing scenarios.

Common commands

CommandWhat it does
lim newCreates a new project from the template. --blank makes a blank one, --lang en uses the English sample, --template starts from a template someone shares, and --ci also adds a GitHub Actions check and script tests
lim devStarts a dev server so you can play in the browser
lim studioOpens Studio in the browser
lim checkSyntax check. Reports missing labels and sprites and parameters of the wrong type, with the line and a suggested fix. --github outputs GitHub annotations, and --strict treats warnings as failures too
lim testRuns the script tests (tests/*.limtest) and checks that the choices you pick lead to what you wrote (Write script tests)
lim reachFinds choices that reach a place (file#label, file:line) from New Game, and shows the choices to pick and how to write a test for it
lim fmtTidies command lines (the text is left as it is)
lim migrateMoves scripts and settings written for an earlier version to the current way of writing. --check checks without rewriting
lim renameRenames a label, file, variable, character, asset or macro, and rewrites the places that use it
lim shotTakes a screenshot of a given page or of the title screen. With --video, it records a video from there while advancing at real speed (Record a video of the game being played)
lim coverageThe all-routes test. It also lists the endings reached
lim i18nBrings a translation file up to date with the current script. Exports it as a table or XLIFF, and imports the translations
lim mcpAn MCP server for using Liminalia from AI assistants
lim buildExports for the browser, Mac, Windows, Linux, Android and iOS. android --aab and ios --archive also make the files you submit to stores
lim doctorChecks that you have the tools and signing keys the export needs
lim playtestPlays the exported browser version to the end automatically and checks that nothing gets stuck along the way
lim size, lim unusedA breakdown of the export's size, and assets that may be unused
lim cleanDeletes old exports that have piled up in date-stamped folders
lim publish steam, lim publish itchUploads what you exported to Steam or itch.io
lim patchMakes a patch from the differences from the previous export
lim importImports a TyranoScript project
lim import-ink, lim import-yarn, lim import-renpy, lim import-twineImports Ink, Yarn Spinner, Ren'Py and Twine scenarios

Every command shows how to use it with --help (lim help lists them all), and prints its messages in English with --lang en or in an English terminal. Every command is described under “lim commands” in Writing scenarios.