CLI

Tooling

SERIXA CLI (serixa/cli v0.2.0)

The CLI is a separate Composer package from the runtime engine.

PackageRole
serixa/frameworkWidgets, renderer, theme, document, serixa.js
serixa/cliScaffolding, build, doctor, profile, inspect
composer require --dev serixa/cli
vendor/bin/serixa version

Monorepo:

cd packages/cli
composer install
php bin/serixa version

Namespace: Serixa\Cli\. Templates live in packages/cli/templates/.

New to SERIXA? getting-started.md and first-blog.md.

Global commands

CommandPurpose
serixaBanner + usage + quick start
serixa version / --version / -VPrint CLI version (fast path)
serixa help [command]Help
serixa listList commands

Project & generators

CommandPurpose
serixa new adminScaffold admin / blog / ecommerce / crm / cms / saas (or --type=)
serixa make:page DashboardCreate pages/DashboardPage.php
serixa make:component UserCardCreate components/UserCard.php
serixa make:layout AdminCreate layouts/AdminLayout.php
serixa make:theme DarkCreate themes/DarkTheme.php
serixa make:plugin ChartsCreate plugins/ChartsPlugin.php

DX tooling

CommandPurpose
serixa docsWrite docs/generated/*
serixa buildOffline CSS (serixa.css), runtime copy, manifest, docs cache
serixa dev --onceSingle watch cycle (omit --once to poll)
serixa doctorPHP / extensions / framework CSS / project asset checks
serixa inspectPrint cwd, stylesheet URL, and a theme sample
serixa benchmarkSample ThemeCompiler / StyleCompiler / Renderer timings
serixa profileCold/warm profile for caches, theme map, Renderer, Document
serixa cache:clearClear in-process ClassMerger / ThemeCompiler / pipeline caches

Theme and asset compilation are performed by serixa build (and serixa dev). There are no separate theme:compile / asset:compile commands.

Plugin commands

use Serixa\Cli\Plugin;

Plugin::registerCommand(new MyCommand());

See also scaffolding.md, project-generator.md, templates.md, monorepo.md, accessibility.md.