Ecosystem ↗

CLI reference

Application commands, lifecycle modes and the limits of built-in checks.

↗ View Markdown

Run in the application directory#

sh
npx zerux dev
npx zerux build
npx zerux start

The runtime CLI uses zclivo for command registration. Your application can expose npm scripts for the same commands. A monorepo root without an application config is not necessarily an application to build.

Command Responsibility
dev Work against source modules, watch changes, stage replacement generations
build Compile application sources and public assets to the production build
start Start the compiled production structure

Lint commands#

The CLI registers lint, lint:watch, lint:fix, lint:watch:fix and JS/CSS/all variants backed by @zeruxjs/lint. Project config and Stylelint plugins are trusted executable code. Read runner results and fail CI on errors.

Typechecking#

The build transpiles; it does not run a complete typecheck. Use a project tsconfig with a separate noEmit check or the TypeScript package's checkTypes API. Keep both checks in CI.

Scaffolders#

The workspace implements create-zerux-js for selected SSR templates, create-zyro-app for explicit client/static/SSR/hydrated modes, and create-zenix-js for a host-configured SQLite CMS scaffold. All use safe staging and dry-run; none installs dependencies, starts applications or supplies default credentials. Verify installed release exports: source changes do not publish unchanged package versions.

Operational diagnostics#

For a development rebuild failure inspect the latest reload status in dev.json and sanitized logs. The last good runtime may still serve requests. Do not publish runtime diagnostic manifests as public assets: they are internal operational state.

Implementation sources

Implementation files for the APIs described on this page.

ZeruxJS · Open source · MIT OR Apache-2.0

Make yourself at home.

Every shortcut has a visible control too. Reading and navigation work without JavaScript.

Ctrl / ⌘ K
Search all documentation
/
Search, outside editable fields
?
This help, outside editable fields
↑ / ↓
Move through search results
Esc
Close a dialog or version menu
Progress, privacy, offline reading and controls →

Reset this learning record?

This removes course answers, exercise confirmations, bookmarks and recent pages for this docs version in this browser. Export a copy first if you want to keep it.

Search documentation

Type at least two characters.