uc-apx create region static-content
Insert a new static-content region into the target page. The region’s htmlCode is populated from —html, defaulting to an empty placeholder comment. Use single-line HTML for cleanest output; multi-line values are indented to match the surrounding code-block context.
uc-apx create region static-content [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--column-span | int | 12-col grid span for the region’s layout (0 = omit; e.g. 6 for a half-width region) | |
--dry-run | Print rendered region to stdout without writing | ||
--force | Reserved for future use | ||
--html | string | HTML body content (default ”<!— TODO —>“) | |
--id | string | Region id (default: kebab-case of —name) | |
--name | string | Display name of the region [required] | |
--page | string | Target page (numeric ID, alias, or name) [required] | |
--sequence | int | Layout sequence (default: max existing + 10) | |
--slot | string | body | Page slot to place the region in |
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--app-dir | string | . | Path to the APEX application directory |
--json-pretty | Output in pretty-printed JSON (human-readable) instead of minified JSON | ||
--toon | Output in TOON format (human-readable, token-efficient) instead of JSON |
Example Generated APEXlang
Section titled “Example Generated APEXlang”Using --dry-run to preview the generated construct (no files are written):
uc-apx --app-dir examples/brookstrut create region static-content --page 46 --name Info Banner --dry-runGenerated APEXlang
region info-banner ( name: Info Banner type: staticContent source { htmlCode: ```html <!-- TODO --> ``` } layout { sequence: 50 slot: body } appearance { template: @/standard templateOptions: #DEFAULT# } )