Skip to content

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]
FlagTypeDefaultDescription
--dry-runPrint the rendered construct to stdout without writing
--entrystringsRepeatable static entry: “Display;Return” or “Display;Return;Sequence”
--idstringOverride the construct id (default: kebab-slug of —name)
--namestringDisplay name of the LOV (e.g. “STATUSES”) [required]
--sourcestringSource kind: static-values | sql [required]
--sqlstringSQL query for —source sql (must alias columns as d, r; accepts @path/to/file.sql to read from disk, @@ escapes a literal leading @)
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON