CLI
NarraLeaf command-line tooling for scaffolding, local development, builds, and project inspection.
The CLI package provides the narraleaf command used by NarraLeaf desktop projects.
narraleaf init my-visual-novel
cd my-visual-novel
narraleaf devCommands
Commands
A quick reference for all current CLI commands.
Init
Create a project through the NarraLeaf skeleton package.
Dev
Watch main and renderer sources, start Electron, and refresh during development.
Build
Bundle renderer and main process output, then package the app with Electron Builder.
Info
Print platform, config, renderer project, and route scan information.
What the CLI Reads
Each project command runs from the current working directory and expects:
package.jsonnarraleaf.config.js- the configured main entry
- the configured renderer directory
renderer/App.tsxorrenderer/App.jsxrenderer/pagesrenderer/public
Use Project Config for the full config shape.