Artisan Commands
Every command in the stack lives under the ui5: namespace. Core ships the generators — the commands that write files — and the SDK ships the operators: the ones that move metadata into the database, compile help, cache the registry, and answer questions about a running installation.
php artisan list ui5 shows what your installation actually has; php artisan help ui5:sync shows a command's own text, which is kept current in the code.
The SDK's commands
| Command | What it does |
|---|---|
ui5:intake | Writes the operator — and before it Pragmatiqu IT's rows — and generates app/Installation.php. Runs before the first ui5:sync. |
ui5:sync | Persists the registry into the database: artifacts, slots, settings, abilities, roles, Customizing catalogs, the installation's rows — then a conformance pass. Idempotent. |
ui5:tenant | Writes the tenant, the operator's operator_for and the first person who can sign in. Once per database, after the first ui5:sync. |
ui5:prune | Deletes what the security, validation, business and report logs keep longer than the settings audit.retention.*. Scheduled daily by the SDK. |
ui5:cache | Compiles the registry into a fast runtime cache file. |
ui5:nav | Compiles the navigation tree into a cache file. |
ui5:help | The help compiler: validate, build HTML, build the search index. |
ui5:doc | Scaffolds a new help document with a fresh UUID. |
ui5:publish | Copies the SDK's shipped assets into public/sdk. |
ui5:i18n | Checks that every translatable Customizing field has its key in the declaring module's bundle; lists every missing key and fails. Writes nothing. |
ui5:explain | Explains ability resolution for one partner in one app, with sources. |
ui5:concept | Inspects the LUX Weave Concept graph. |
ui5:describe | Reports what a package declares into the public contract: its Weave artifacts and marketplace attributes. |
ui5:slot | Inspects the slot catalog. Overrides Core's ui5:slot, adding the actor overrides. |
ui5:unit | Scaffolds a unit of work and its declaration, and prints the keys that translate its title. |
ui5:command | Scaffolds an audited command and its declaration — a person command (--act, --role) or --automation. |
ui5:job | Scaffolds an audited job and its declaration. |
The ones with options worth knowing
ui5:sync — the pipeline that turns declarations into rows. Eight workers run in a fixed order (artifacts, slots, settings, abilities, roles, Customizing, the installation, then a value-help scope conformance check), each in a transaction of its own, and the workers are idempotent, so running it twice changes nothing the second time. It runs the readiness check of ui5:ready first and does not start while a blocker stands; ui5:ready lists every blocker with the object that blocks and exits 1. See the sync pipeline.
ui5:help — four flags, and the important one is the combination:
--validate check every declared help document (the default when no flag is given)
--build compile the HTML into the storage cache
--index build the Lunr full-text index
--all all three in one runA bare ui5:help only validates — it produces no output files. Deployments run ui5:help --all. The build pipeline page carries the full diagnostics table, including what passes in silence.
ui5:explain --app= --partner= --at= — the debugging tool for "why can this person not press that button". It resolves the actor's abilities the way the runtime does and shows where each grant came from: which role or group, which assignment row, and its validity window. --at accepts a datetime, so you can ask the question as of last Tuesday. See the Explain CLI.
ui5:doc {module} {title} {--locale=en} — writes ui5/{module}/doc/{uuid}/{locale}.md with a fresh UUID and frontmatter. The UUID is the identity; never change it after publishing. See authoring help.
ui5:intake — options describing the operator (--name, --email, --ext-ref, --vat, --office, --founded, …). --email is the idempotency key, so re-running with the same address updates rather than duplicates; --force skips the confirmation. When app/Installation.php exists, its operator key wins over --ext-ref.
ui5:tenant — --operator, --tenant=EXT_REF or --name= names the tenant; --admin-email, --admin-name, --admin-first-name and --password-env=NAME describe the first admin, whose password comes from that environment variable. Full walkthrough on Installation and Tenant.
ui5:describe {--check} {--package=} — reports, module by module, what a package claims into the public contract: Concepts and their doors, dashboard contributions, value helps, dialogs, operations and services with what each module #[Uses], launch tiles, analytics, and the package's marketplace attributes and released events — the local preview of its module page. It writes nothing. --check only validates and exits non-zero when the declarations are not valid — the registry does not load, the marketplace attributes are wrong, or a launch tile breaks the catalogue's rules —, which is what you put in CI. changed in 3.0Before 3.0 it wrote extra.laravelui5 into composer.json.
ui5:publish {--force} — a dumb copy of the package's resources/assets into public/sdk. It prompts unless --force, which is what a deploy script passes. It publishes assets, not stubs — see stubs and scaffolding.
ui5:slot {name?} — with no argument, the whole slot catalog; with a name, that slot's resolution chain plus the per-partner actor overrides Core cannot know about. See actor slot values.
Core's commands, which you also have
These ship with laravelui5/core and generate files. They behave identically with or without the SDK installed — with one exception, noted below.
| Command | Generates |
|---|---|
ui5:app | A Ui5App module from a UI5 frontend project |
ui5:lib | A Ui5Library module from a UI5 library project |
ui5:action | An action class and its handler |
ui5:card | A card, its provider and its manifest template |
ui5:tile | A tile |
ui5:chart | A chart |
ui5:report | A report |
ui5:dashboard | A dashboard |
ui5:group | A dashboard group |
ui5:resource | A resource |
ui5:wire | A view + controller floorplan for a model |
ui5:assemble | A self-contained app from a blueprint |
ui5:slot | (replaced by the SDK's version) |
The one exception is ui5:action. With the SDK installed it generates a typed handler that implements SdkActionHandlerInterface instead of Core's array-returning shape. Nothing else changes — the SDK swaps one scaffolder and hands every other artifact type back to Core's default.
Always scaffold, never hand-write
Artifact classes carry constants, attributes and a manifest wiring that the generators get right and hand-authoring gets subtly wrong. ui5:app --refresh in particular overwrites the generated resources, so a manifest you edited by hand is lost on the next refresh. Edit the source project, then regenerate.
The order that matters
Two sequences are worth memorising, because getting them wrong produces confusing rather than loud failures.
First install:
php artisan migrate
php artisan ui5:intake --name="…" --email="…" # the operator; commit app/Installation.php
php artisan ui5:sync # runs as the automation actor intake wrote
php artisan ui5:tenant --operator --admin-email="…" --admin-name="…" --password-env=FIRST_CHAIR_PASSWORD
php artisan ui5:help --allEvery deploy:
php artisan migrate --force
php artisan ui5:sync # ends with ui5:cache — it bakes the ability ids sync just assigned
php artisan ui5:nav
php artisan ui5:help --all
php artisan ui5:publish --forceSync before the caches, always: the caches compile what sync has just written. Caching and performance explains what each cache holds — including the one standing caveat about which registry to keep bound in production.