uc-apx edit page
Edit a page construct in place. Supports two independent edits (one per invocation):
Page-group membership: uc-apx edit page —page 65 —page-group reports # assign/move the page to a group uc-apx edit page —page 65 —clear-page-group # remove the page’s group
Page-level authorization: uc-apx edit page —page 50 —authz administration-rights # gate the page uc-apx edit page —page 50 —authz "" # remove page authorization
The group named by —page-group must already exist (create it with uc-apx create page-group).
The authz scheme id is upserted into the page’s top-level security { authorizationScheme }
block; sibling security properties (pageAccessProtection, …) are left intact.
uc-apx edit page [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--authz | string | Authorization scheme id to set on the page; pass "" to remove | |
--clear-page-group | Remove the page’s pageGroup property (idempotent). | ||
--dry-run | Print the rewritten file content to stdout without writing | ||
--page | string | Page to edit: numeric id, alias, or name [required] | |
--page-group | string | Assign the page to this page group (id or display name). Strip a leading @ if present. |
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 |