Skip to content

uc-apx create authorization

Append a fresh top-level authorization construct to shared-components/authorizations.apx (creating the file if it doesn’t exist).

Supported —type values and the flag they expect: plSqlFunctionBody —body “return :APP_USER = ‘ADMIN’;” plSqlExpression —body ”:APP_USER = ‘ADMIN’” existsSqlQuery —body “select 1 from users where …” notExistsSqlQuery —body “select 1 from blocked where …” isInRoleOrGroup —names Administrator [—names Host …] isNotInRoleOrGroup —names Guest

uc-apx create authorization [flags]
FlagTypeDefaultDescription
--bodystringPL/SQL or SQL body for body-shape types (or @path/to/file to read from disk; @@ escapes a literal leading @)
--dry-runPrint the rendered construct to stdout without writing
--error-messagestringOptional message rendered under error.errorMessage
--idstringOverride the construct id (default: kebab-slug of —name)
--namestringDisplay name (e.g. “Administration Rights”) [required]
--namesstringsRole/group name for isInRoleOrGroup variants (repeatable)
--typestringAuthorization type (see help for supported values) [required]
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