uc-apx create lov
Append a fresh top-level lov construct to
shared-components/lovs.apx (creating the file if it doesn’t exist).
Two source kinds are supported: —source static-values —entry “Yes;Y” —entry “No;N” —source sql —sql “select name d, id r from t order by 1”
Static-values entries are emitted as entry <slug-of-display> ( ... )
with sequence auto-numbered (10, 20, …) unless the entry includes a
third “;Sequence” field. SQL LOVs use the legacySqlQuery source
type, which expects the query to alias its columns as d and r
(display, return).
uc-apx create lov [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | Print the rendered construct to stdout without writing | ||
--entry | strings | Repeatable static entry: “Display;Return” or “Display;Return;Sequence” | |
--id | string | Override the construct id (default: kebab-slug of —name) | |
--name | string | Display name of the LOV (e.g. “STATUSES”) [required] | |
--source | string | Source kind: static-values | sql [required] | |
--sql | string | SQL query for —source sql (must alias columns as d, r; accepts @path/to/file.sql to read from disk, @@ escapes a literal leading @) |
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 |