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]| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | PL/SQL or SQL body for body-shape types (or @path/to/file to read from disk; @@ escapes a literal leading @) | |
--dry-run | Print the rendered construct to stdout without writing | ||
--error-message | string | Optional message rendered under error.errorMessage | |
--id | string | Override the construct id (default: kebab-slug of —name) | |
--name | string | Display name (e.g. “Administration Rights”) [required] | |
--names | strings | Role/group name for isInRoleOrGroup variants (repeatable) | |
--type | string | Authorization type (see help for supported values) [required] |
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 |