@api-now/cli 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +17 -0
  2. package/dist/index.js +33 -33
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -127,8 +127,25 @@ apinow catalog publish --file <file_id> --name "Catalog Name" --description "Cat
127
127
  apinow catalog list --scope <all|public|organization|private> [--key <domain_key>]
128
128
  ```
129
129
 
130
+ ### 6. Runtime (`runtime`)
131
+ Administrative operations for the API runtime. This command allows API Now! platform managers and administrators to modify runtime users directly.
132
+
133
+ #### Bypass Authorization Restrictions
134
+ By default, the API's semantic pipeline does not allow granting permissions to a user that exceed the permissions of the authenticated caller. Consequently, an API user cannot be granted permissions higher than the lowest permission in the chain.
135
+
136
+ The `runtime users update` command bypasses this restriction by writing updates directly to the runtime database, allowing administrators to designate users with higher permissions or update arbitrary properties.
137
+
138
+ ```bash
139
+ # Update properties of a user in the runtime database (bypasses semantic pipeline limits)
140
+ apinow runtime users update --api <api_file_id_or_slug> --user-id <user_id> --property <name=value...> [--org <org_id>] [--env <environment>]
141
+
142
+ # Example: Grant admin role and set a premium tier for user-123 in production
143
+ apinow runtime users update --api api-123 --user-id user-123 --property role=admin tier=premium --org org-123
144
+ ```
145
+
130
146
  ---
131
147
 
148
+
132
149
  ## Development
133
150
 
134
151
  ### Local Setup & Building