@smartkomm/plexus-cli 0.1.32 → 0.1.33

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 (30) hide show
  1. package/README.md +50 -24
  2. package/dist/cli.mjs +1320 -997
  3. package/dist/skill/.managed-by-plexus-cli +1 -1
  4. package/dist/skill/SKILL.md +24 -15
  5. package/dist/skill/references/audit/answer-access-request.md +2 -2
  6. package/dist/skill/references/commands.md +1051 -737
  7. package/dist/skill/references/config/init-tenant.md +4 -4
  8. package/dist/skill/references/config/platform-setup-export.md +2 -2
  9. package/dist/skill/references/notifications/debug-mail-delivery.md +8 -8
  10. package/dist/skill/references/notifications/reword-a-letter.md +2 -2
  11. package/dist/skill/references/notifications/trace-a-login.md +2 -2
  12. package/dist/skill/references/offer/assignment-rule.md +2 -2
  13. package/dist/skill/references/offer/task-result-files.md +1 -1
  14. package/dist/skill/references/persons/purge-deleted-person.md +2 -2
  15. package/dist/skill/references/resolver/register-input-keys.md +7 -7
  16. package/dist/skill/references/retention/erase-due-parties.md +3 -3
  17. package/dist/skill/references/signing/connect-a-school.md +3 -3
  18. package/dist/skill/references/signing/rotate-the-key.md +3 -3
  19. package/dist/skill/references/users/add-platform-admin.md +8 -8
  20. package/dist/skill/references/users/add-platform-user.md +2 -2
  21. package/dist/skill/references/users/add-tenant-admin.md +6 -6
  22. package/dist/skill/references/users/change-login-email.md +6 -6
  23. package/dist/skill/references/users/cli-access-for-tenant-admin.md +2 -2
  24. package/dist/skill/references/users/delete-permission-group.md +1 -1
  25. package/dist/skill/references/users/grant-cross-tenant-access.md +6 -6
  26. package/dist/skill/references/users/grant-feedback-assignable.md +4 -4
  27. package/dist/skill/references/users/set-password.md +10 -10
  28. package/dist/skill/references/users/use-test-account.md +2 -2
  29. package/dist/skill/references/worker-ops/debug-worker-jobs.md +7 -7
  30. package/package.json +1 -1
@@ -1,47 +1,101 @@
1
1
  # plexus-cli command reference
2
2
 
3
3
  Generated from the commands the CLI registers — do not edit; `plexus-cli <command> --help` prints the same.
4
- 285 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
4
+ 284 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
5
5
  `--json` (raw JSON instead of a table) and `--allow-prod` (required for a writing run against production).
6
6
 
7
- - [Admission](#admission) (15)
8
- - [Agents](#agents) (2)
9
- - [Branding](#branding) (6)
10
- - [Config](#config) (10)
11
- - [Contracts](#contracts) (24)
12
- - [Feedback](#feedback) (21)
13
- - [Files](#files) (3)
14
- - [Identity](#identity) (5)
15
- - [Imports](#imports) (4)
16
- - [Introspection](#introspection) (3)
17
- - [Jobs](#jobs) (4)
18
- - [Marketing](#marketing) (6)
19
- - [Notifications](#notifications) (11)
20
- - [Offer](#offer) (92)
21
- - [Operations](#operations) (1)
22
- - [Organisation](#organisation) (8)
23
- - [Persons](#persons) (2)
24
- - [Platform](#platform) (6)
25
- - [Setup](#setup) (5)
26
- - [Signing](#signing) (13)
27
- - [Stammdaten](#stammdaten) (2)
28
- - [Stripe](#stripe) (3)
29
- - [Tenant users](#tenant-users) (14)
30
- - [Users](#users) (20)
31
- - [Work-Items](#work-items) (5)
32
-
33
- ## Admission
7
+ - [Admission (offline)](#admission-offline) (1)
8
+ - [Admission (platform operator)](#admission-platform-operator) (2)
9
+ - [Admission (school token)](#admission-school-token) (12)
10
+ - [Agents (offline)](#agents-offline) (2)
11
+ - [Branding (platform operator)](#branding-platform-operator) (6)
12
+ - [Config (offline)](#config-offline) (4)
13
+ - [Config (school token)](#config-school-token) (6)
14
+ - [Contracts (platform operator)](#contracts-platform-operator) (5)
15
+ - [Contracts (school token)](#contracts-school-token) (19)
16
+ - [Feedback (platform operator)](#feedback-platform-operator) (21)
17
+ - [Files (platform operator)](#files-platform-operator) (2)
18
+ - [Files (school token)](#files-school-token) (1)
19
+ - [Identity (own account)](#identity-own-account) (5)
20
+ - [Imports (platform operator)](#imports-platform-operator) (2)
21
+ - [Imports (school token)](#imports-school-token) (2)
22
+ - [Introspection (offline)](#introspection-offline) (2)
23
+ - [Introspection (own account)](#introspection-own-account) (1)
24
+ - [Jobs (platform operator)](#jobs-platform-operator) (4)
25
+ - [Marketing (platform operator)](#marketing-platform-operator) (6)
26
+ - [Notifications (platform operator)](#notifications-platform-operator) (5)
27
+ - [Notifications (school token)](#notifications-school-token) (6)
28
+ - [Offer (offline)](#offer-offline) (66)
29
+ - [Offer (school token)](#offer-school-token) (26)
30
+ - [Operations (offline)](#operations-offline) (1)
31
+ - [Organisation (school token)](#organisation-school-token) (8)
32
+ - [Persons (platform operator)](#persons-platform-operator) (1)
33
+ - [Persons (school token)](#persons-school-token) (1)
34
+ - [Platform (platform operator)](#platform-platform-operator) (5)
35
+ - [Setup (platform operator)](#setup-platform-operator) (5)
36
+ - [Signing (platform operator)](#signing-platform-operator) (5)
37
+ - [Signing (school token)](#signing-school-token) (8)
38
+ - [Stammdaten (platform operator)](#stammdaten-platform-operator) (2)
39
+ - [Stripe (school token)](#stripe-school-token) (3)
40
+ - [Tenant users (school token)](#tenant-users-school-token) (14)
41
+ - [Users (platform operator)](#users-platform-operator) (15)
42
+ - [Users (school token)](#users-school-token) (5)
43
+ - [Work-Items (school token)](#work-items-school-token) (5)
44
+
45
+ ## Admission (offline)
46
+
47
+ ### `assignment simulate`
48
+
49
+ Evaluate an offer bundle's assignment rule over an application's environment ($env), offline
50
+
51
+ - **Right:** offline — no deployment
52
+ - **Effect:** read — changes nothing on the deployment
53
+
54
+ | Option | Description |
55
+ |---|---|
56
+ | `--dir <value>` (required) | Offer bundle directory (its workflow.json carries the rule) |
57
+ | `--env-json <value>` | The application's environment ($env) as JSON |
58
+ | `--env-file <value>` | …or a file holding it |
59
+ | `--creator <value>` | Label for the staff creator (only a staff start has one) |
60
+ | `--rotation-previous <value>` | <slot>=<personKey>: the last pick of that slot's „Reihum“ row (repeatable; none = its first start) |
61
+ | `--left <value>` | <personKey>: someone who has left — every rotation skips them (repeatable) |
62
+ | `--open <value>` | <personKey>=<n>: open tasks, for a leastLoaded rotation (repeatable; absent = 0) |
63
+
64
+ ## Admission (platform operator)
65
+
66
+ ### `retention apply`
67
+
68
+ Erase (DSGVO redaction) every application of the tenant whose retention period has ended. Dry run unless --confirm; --confirm needs --expect <n>, the count `retention plan` showed.
69
+
70
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
71
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
72
+
73
+ | Option | Description |
74
+ |---|---|
75
+ | `--confirm` | Actually erase (default: dry run) |
76
+ | `--expect <value>` | With --confirm: how many applications you reviewed in `retention plan`; a different count erases nothing |
77
+
78
+ ### `retention plan`
79
+
80
+ Read-only: the tenant's applications whose retention period has ended (what `retention apply --confirm` would erase).
81
+
82
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
83
+ - **Effect:** read — changes nothing on the deployment
84
+
85
+ ## Admission (school token)
34
86
 
35
87
  ### `admission runs list`
36
88
 
37
89
  List Bewerbungsläufe for the active tenant
38
90
 
91
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
39
92
  - **Effect:** read — changes nothing on the deployment
40
93
 
41
94
  ### `applications counts`
42
95
 
43
96
  Count an offer's applications per list
44
97
 
98
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
45
99
  - **Effect:** read — changes nothing on the deployment
46
100
 
47
101
  | Option | Description |
@@ -52,12 +106,14 @@ Count an offer's applications per list
52
106
 
53
107
  Discard a TEST application (the server refuses a real one)
54
108
 
109
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
55
110
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
56
111
 
57
112
  ### `applications list`
58
113
 
59
114
  List an offer's applications (id, status, board state, applicant, test)
60
115
 
116
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
61
117
  - **Effect:** read — changes nothing on the deployment
62
118
 
63
119
  | Option | Description |
@@ -69,18 +125,21 @@ List an offer's applications (id, status, board state, applicant, test)
69
125
 
70
126
  One application: status, test flag, offer, current workflow nodes
71
127
 
128
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
72
129
  - **Effect:** read — changes nothing on the deployment
73
130
 
74
131
  ### `applications staff-input list <application>`
75
132
 
76
133
  An application's internal inputs (set at the start): value, and why one can no longer be corrected
77
134
 
135
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
78
136
  - **Effect:** read — changes nothing on the deployment
79
137
 
80
138
  ### `applications staff-input set <application>`
81
139
 
82
140
  Correct one internal input of an application, with a reason — refused once a node that reads it was entered
83
141
 
142
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
84
143
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
85
144
 
86
145
  | Option | Description |
@@ -92,6 +151,7 @@ Correct one internal input of an application, with a reason — refused once a n
92
151
 
93
152
  Start a TEST application for an applicant (school year and level by key or id) and show what test mode offers next
94
153
 
154
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
95
155
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
96
156
 
97
157
  | Option | Description |
@@ -109,51 +169,21 @@ Start a TEST application for an applicant (school year and level by key or id) a
109
169
 
110
170
  One application's process store: every address of its pinned graph, resolved (present / pending / absent)
111
171
 
172
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
112
173
  - **Effect:** read — changes nothing on the deployment
113
174
 
114
- ### `assignment simulate`
115
-
116
- Evaluate an offer bundle's assignment rule over an application's environment ($env), offline
117
-
118
- - **Effect:** read — changes nothing on the deployment
119
-
120
- | Option | Description |
121
- |---|---|
122
- | `--dir <value>` (required) | Offer bundle directory (its workflow.json carries the rule) |
123
- | `--env-json <value>` | The application's environment ($env) as JSON |
124
- | `--env-file <value>` | …or a file holding it |
125
- | `--creator <value>` | Label for the staff creator (only a staff start has one) |
126
- | `--rotation-previous <value>` | <slot>=<personKey>: the last pick of that slot's „Reihum“ row (repeatable; none = its first start) |
127
- | `--left <value>` | <personKey>: someone who has left — every rotation skips them (repeatable) |
128
- | `--open <value>` | <personKey>=<n>: open tasks, for a leastLoaded rotation (repeatable; absent = 0) |
129
-
130
175
  ### `leads list`
131
176
 
132
177
  List Interessenten (leads) for the active tenant
133
178
 
134
- - **Effect:** read — changes nothing on the deployment
135
-
136
- ### `retention apply`
137
-
138
- Erase (DSGVO redaction) every application of the tenant whose retention period has ended. Dry run unless --confirm; --confirm needs --expect <n>, the count `retention plan` showed.
139
-
140
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
141
-
142
- | Option | Description |
143
- |---|---|
144
- | `--confirm` | Actually erase (default: dry run) |
145
- | `--expect <value>` | With --confirm: how many applications you reviewed in `retention plan`; a different count erases nothing |
146
-
147
- ### `retention plan`
148
-
149
- Read-only: the tenant's applications whose retention period has ended (what `retention apply --confirm` would erase).
150
-
179
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
151
180
  - **Effect:** read — changes nothing on the deployment
152
181
 
153
182
  ### `test-actions list`
154
183
 
155
184
  List the test-mode actions of the application's current node(s) (scenarios, auto-fill-files, submit, …) and the application-wide ones
156
185
 
186
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
157
187
  - **Effect:** read — changes nothing on the deployment
158
188
 
159
189
  | Option | Description |
@@ -165,6 +195,7 @@ List the test-mode actions of the application's current node(s) (scenarios, auto
165
195
 
166
196
  Run one test-mode action; a scenario (load-scenario:<id>) also submits unless --no-auto-submit
167
197
 
198
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
168
199
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
169
200
 
170
201
  | Option | Description |
@@ -175,12 +206,13 @@ Run one test-mode action; a scenario (load-scenario:<id>) also submits unless --
175
206
  | `--auto-submit` | Scenario only: stub the file fields and submit after loading (default on; --no-auto-submit only loads) |
176
207
  | `--param <value>` | Action parameter key=value (repeatable; the value is JSON where it parses, else text), e.g. --param confirmed=true for an action that asks a question first (upload-signed-document) |
177
208
 
178
- ## Agents
209
+ ## Agents (offline)
179
210
 
180
211
  ### `agent invoke`
181
212
 
182
213
  Invoke a shared agent tool; pipe its JSON input on stdin.
183
214
 
215
+ - **Right:** offline — no deployment
184
216
  - **Effect:** offline — edits local files only
185
217
  - **Terminal only:** runs on the operator's own machine, never in a hosted chat
186
218
 
@@ -192,14 +224,16 @@ Invoke a shared agent tool; pipe its JSON input on stdin.
192
224
 
193
225
  Show the shared platform/CLI agent tool schemas and skill revision.
194
226
 
227
+ - **Right:** offline — no deployment
195
228
  - **Effect:** read — changes nothing on the deployment
196
229
 
197
- ## Branding
230
+ ## Branding (platform operator)
198
231
 
199
232
  ### `branding clear-font`
200
233
 
201
234
  Remove a tenant's portal font file for a slot (platform-admin; the family stays)
202
235
 
236
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
203
237
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
204
238
 
205
239
  | Option | Description |
@@ -210,12 +244,14 @@ Remove a tenant's portal font file for a slot (platform-admin; the family stays)
210
244
 
211
245
  Remove a tenant's portal logo (platform-admin)
212
246
 
247
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
213
248
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
214
249
 
215
250
  ### `branding set-font`
216
251
 
217
252
  Upload a tenant's portal font file (WOFF2) for a slot (platform-admin)
218
253
 
254
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
219
255
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
220
256
 
221
257
  | Option | Description |
@@ -227,6 +263,7 @@ Upload a tenant's portal font file (WOFF2) for a slot (platform-admin)
227
263
 
228
264
  Upload a tenant's portal logo (platform-admin)
229
265
 
266
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
230
267
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
231
268
 
232
269
  | Option | Description |
@@ -238,6 +275,7 @@ Upload a tenant's portal logo (platform-admin)
238
275
 
239
276
  Set a tenant's portal theme tokens from a JSON file (platform-admin)
240
277
 
278
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
241
279
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
242
280
 
243
281
  | Option | Description |
@@ -248,40 +286,16 @@ Set a tenant's portal theme tokens from a JSON file (platform-admin)
248
286
 
249
287
  Show a tenant's current branding + resolved logo and font-file URLs (platform-admin)
250
288
 
289
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
251
290
  - **Effect:** read — changes nothing on the deployment
252
291
 
253
- ## Config
254
-
255
- ### `config apply`
256
-
257
- Reconcile a tenant/platform config (dry-run unless --confirm) / Konfiguration anwenden
258
-
259
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
260
-
261
- | Option | Description |
262
- |---|---|
263
- | `--scope <value>` | Apply scope: tenant (default) \| platform |
264
- | `--from <value>` | Source: blueprint \| env:<srcEnv> \| snapshot:<path> |
265
- | `--confirm` | Commit (else dry-run) |
266
- | `--allow-destructive` | Permit destroying orphaned rows |
267
- | `--out <value>` | Append the minted `email,password` rows to this CSV file (created with a header; never overwritten). |
268
- | `--quiet` | Do not echo the password to stdout (use with --out). |
269
-
270
- ### `config export`
271
-
272
- Snapshot a tenant's live config to config/.dev/<tenant>/config.json / Konfiguration exportieren
273
-
274
- - **Effect:** read — changes nothing on the deployment
275
-
276
- | Option | Description |
277
- |---|---|
278
- | `--out <value>` | Output file (default: config/.dev/<tenant>/config.json; refused when it exists, unless --force) |
279
- | `--force` | Overwrite an existing --out file. |
292
+ ## Config (offline)
280
293
 
281
294
  ### `config init`
282
295
 
283
296
  Scaffold a minimal, valid tenant config JSON on disk / Mandanten-Konfiguration anlegen
284
297
 
298
+ - **Right:** offline — no deployment
285
299
  - **Effect:** offline — edits local files only
286
300
 
287
301
  | Option | Description |
@@ -294,6 +308,7 @@ Scaffold a minimal, valid tenant config JSON on disk / Mandanten-Konfiguration a
294
308
 
295
309
  Add a legal entity (Träger) to an exported config file — offline / Träger hinzufügen
296
310
 
311
+ - **Right:** offline — no deployment
297
312
  - **Effect:** offline — edits local files only
298
313
 
299
314
  | Option | Description |
@@ -308,10 +323,67 @@ Add a legal entity (Träger) to an exported config file — offline / Träger hi
308
323
  | `--plz <value>` | Address: postcode |
309
324
  | `--ort <value>` | Address: town |
310
325
 
326
+ ### `config show`
327
+
328
+ Show the resolved connection config (no network) / Verbindung anzeigen
329
+
330
+ - **Right:** offline — no deployment
331
+ - **Effect:** read — changes nothing on the deployment
332
+
333
+ ### `config unit add`
334
+
335
+ Add a unit (Einrichtung) to an exported config file — offline / Einrichtung hinzufügen
336
+
337
+ - **Right:** offline — no deployment
338
+ - **Effect:** offline — edits local files only
339
+
340
+ | Option | Description |
341
+ |---|---|
342
+ | `--file <value>` (required) | Exported config.json (edited in place) |
343
+ | `--key <value>` (required) | Stable key (never the name) |
344
+ | `--name <value>` (required) | German name |
345
+ | `--name-en <value>` (required) | English name |
346
+ | `--legal-entity <value>` (required) | The Träger's key |
347
+ | `--kind <value>` (required) | school \| kindergarten \| after_school_care \| department \| site \| other |
348
+ | `--slug <value>` | URL slug (default: derived from the German name on create) |
349
+ | `--parent <value>` | Parent unit key |
350
+ | `--pedagogy-unit` | A pedagogical unit (shown in the portal) |
351
+
352
+ ## Config (school token)
353
+
354
+ ### `config apply`
355
+
356
+ Reconcile a tenant/platform config (dry-run unless --confirm) / Konfiguration anwenden
357
+
358
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
359
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
360
+
361
+ | Option | Description |
362
+ |---|---|
363
+ | `--scope <value>` | Apply scope: tenant (default) \| platform |
364
+ | `--from <value>` | Source: blueprint \| env:<srcEnv> \| snapshot:<path> |
365
+ | `--confirm` | Commit (else dry-run) |
366
+ | `--allow-destructive` | Permit destroying orphaned rows |
367
+ | `--out <value>` | Append the minted `email,password` rows to this CSV file (created with a header; never overwritten). |
368
+ | `--quiet` | Do not echo the password to stdout (use with --out). |
369
+
370
+ ### `config export`
371
+
372
+ Snapshot a tenant's live config to config/.dev/<tenant>/config.json / Konfiguration exportieren
373
+
374
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
375
+ - **Effect:** read — changes nothing on the deployment
376
+
377
+ | Option | Description |
378
+ |---|---|
379
+ | `--out <value>` | Output file (default: config/.dev/<tenant>/config.json; refused when it exists, unless --force) |
380
+ | `--force` | Overwrite an existing --out file. |
381
+
311
382
  ### `config prune-offers`
312
383
 
313
384
  Drop offer generations that are only edit history / Tote Angebots-Generationen entfernen
314
385
 
386
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
315
387
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
316
388
 
317
389
  | Option | Description |
@@ -322,6 +394,7 @@ Drop offer generations that are only edit history / Tote Angebots-Generationen e
322
394
 
323
395
  Patch ONE field of ONE config row (dry-run unless --confirm) / Einzelnes Feld setzen
324
396
 
397
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
325
398
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
326
399
 
327
400
  | Option | Description |
@@ -332,40 +405,18 @@ Patch ONE field of ONE config row (dry-run unless --confirm) / Einzelnes Feld se
332
405
  | `--value <value>` (required) | New value (JSON or string) |
333
406
  | `--confirm` | Commit (else dry-run) |
334
407
 
335
- ### `config show`
336
-
337
- Show the resolved connection config (no network) / Verbindung anzeigen
338
-
339
- - **Effect:** read — changes nothing on the deployment
340
-
341
408
  ### `config targets`
342
409
 
343
410
  List the config/data target registry + live row counts / Ziel-Register
344
411
 
412
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
345
413
  - **Effect:** read — changes nothing on the deployment
346
414
 
347
- ### `config unit add`
348
-
349
- Add a unit (Einrichtung) to an exported config file — offline / Einrichtung hinzufügen
350
-
351
- - **Effect:** offline — edits local files only
352
-
353
- | Option | Description |
354
- |---|---|
355
- | `--file <value>` (required) | Exported config.json (edited in place) |
356
- | `--key <value>` (required) | Stable key (never the name) |
357
- | `--name <value>` (required) | German name |
358
- | `--name-en <value>` (required) | English name |
359
- | `--legal-entity <value>` (required) | The Träger's key |
360
- | `--kind <value>` (required) | school \| kindergarten \| after_school_care \| department \| site \| other |
361
- | `--slug <value>` | URL slug (default: derived from the German name on create) |
362
- | `--parent <value>` | Parent unit key |
363
- | `--pedagogy-unit` | A pedagogical unit (shown in the portal) |
364
-
365
415
  ### `config wipe`
366
416
 
367
417
  Clear a target's tables (--confirm + --allow-destructive) / Ziel leeren
368
418
 
419
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
369
420
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
370
421
 
371
422
  | Option | Description |
@@ -375,12 +426,72 @@ Clear a target's tables (--confirm + --allow-destructive) / Ziel leeren
375
426
  | `--confirm` | Required: actually wipe |
376
427
  | `--allow-destructive` | Required for destructive wipes |
377
428
 
378
- ## Contracts
429
+ ## Contracts (platform operator)
430
+
431
+ ### `platform generator input-key apply`
432
+
433
+ Register every key of a file that is missing; refuse the whole file when one differs or is deprecated
434
+
435
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
436
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
437
+
438
+ | Option | Description |
439
+ |---|---|
440
+ | `--file <value>` (required) | The input-key file (JSON array) |
441
+
442
+ ### `platform generator input-key create`
443
+
444
+ Register one contract input key (camelCase; an entity key ends in PartyId or LegalEntityId)
445
+
446
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
447
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
448
+
449
+ | Option | Description |
450
+ |---|---|
451
+ | `--key <value>` (required) | camelCase key |
452
+ | `--label <value>` (required) | German label |
453
+ | `--label-en <value>` (required) | English label |
454
+ | `--description <value>` (required) | German description |
455
+ | `--description-en <value>` (required) | English description |
456
+ | `--scalar <value>` | Value type: string\|number\|boolean\|date\|enum\|address |
457
+ | `--entity <value>` | Entity reference: party\|legalEntity |
458
+
459
+ ### `platform generator input-key deprecate`
460
+
461
+ Deprecate a contract input key by key — no new draft may use it; sealed revisions keep working
462
+
463
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
464
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
465
+
466
+ | Option | Description |
467
+ |---|---|
468
+ | `--key <value>` (required) | The registered key |
469
+
470
+ ### `platform generator input-key list`
471
+
472
+ List the contract input registry
473
+
474
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
475
+ - **Effect:** read — changes nothing on the deployment
476
+
477
+ ### `platform generator input-key plan`
478
+
479
+ Compare an input-key file with the registry: create, same, differs, deprecated (no write)
480
+
481
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
482
+ - **Effect:** read — changes nothing on the deployment
483
+
484
+ | Option | Description |
485
+ |---|---|
486
+ | `--file <value>` (required) | The input-key file (JSON array) |
487
+
488
+ ## Contracts (school token)
379
489
 
380
490
  ### `catalog apply`
381
491
 
382
492
  Bring a catalog file onto the environment by stable key; a Word file is uploaded only when its SHA-256 differs. Idempotent.
383
493
 
494
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
384
495
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
385
496
 
386
497
  | Option | Description |
@@ -391,6 +502,7 @@ Bring a catalog file onto the environment by stable key; a Word file is uploaded
391
502
 
392
503
  Read-only: write the tenant's catalog (revenue accounts, articles with price, floor and programs, packages, grant templates) as catalog.json — `catalog plan` on it reports `same` everywhere. Word templates are not exported.
393
504
 
505
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
394
506
  - **Effect:** read — changes nothing on the deployment
395
507
 
396
508
  | Option | Description |
@@ -402,6 +514,7 @@ Read-only: write the tenant's catalog (revenue accounts, articles with price, fl
402
514
 
403
515
  Read-only: what `catalog apply` would write (revenue accounts, articles, price versions, program assignments, packages, tiers, Word templates).
404
516
 
517
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
405
518
  - **Effect:** read — changes nothing on the deployment
406
519
 
407
520
  | Option | Description |
@@ -412,6 +525,7 @@ Read-only: what `catalog apply` would write (revenue accounts, articles, price v
412
525
 
413
526
  Add a grant to one contract line (--line) from the 1st of a month.
414
527
 
528
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
415
529
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
416
530
 
417
531
  | Option | Description |
@@ -430,6 +544,7 @@ Add a grant to one contract line (--line) from the 1st of a month.
430
544
 
431
545
  Apply a contract grant template to its eligible contract lines, with an optional agreed euro amount and floor.
432
546
 
547
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
433
548
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
434
549
 
435
550
  | Option | Description |
@@ -447,6 +562,7 @@ Apply a contract grant template to its eligible contract lines, with an optional
447
562
 
448
563
  End an applied grant on the last day of a month.
449
564
 
565
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
450
566
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
451
567
 
452
568
  | Option | Description |
@@ -457,6 +573,7 @@ End an applied grant on the last day of a month.
457
573
 
458
574
  Replace an applied grant from the 1st of a month: the old one ends the day before, the new one takes its place.
459
575
 
576
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
460
577
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
461
578
 
462
579
  | Option | Description |
@@ -469,91 +586,44 @@ Replace an applied grant from the 1st of a month: the old one ends the day befor
469
586
  | `--evidence <value>` (required) | Why the family gets it, as a JSON object — e.g. {"rank":2,"proof":"Bescheid Stadt 03.11."} |
470
587
  | `--from <value>` (required) | First day of the new grant (YYYY-MM-01) |
471
588
 
472
- ### `generator input-key apply`
473
-
474
- Register every key of a file that is missing; refuse the whole file when one differs or is deprecated
589
+ ### `generator list`
475
590
 
476
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
591
+ List generator identities and their revisions.
477
592
 
478
- | Option | Description |
479
- |---|---|
480
- | `--file <value>` (required) | The input-key file (JSON array) |
593
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
594
+ - **Effect:** read — changes nothing on the deployment
481
595
 
482
- ### `generator input-key create`
596
+ ### `generator package apply`
483
597
 
484
- Register one contract input key (camelCase; an entity key ends in PartyId or LegalEntityId)
598
+ Create or revise a contract package from a file and seal it once its scenarios are reviewed
485
599
 
600
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
486
601
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
487
602
 
488
603
  | Option | Description |
489
604
  |---|---|
490
- | `--key <value>` (required) | camelCase key |
491
- | `--label <value>` (required) | German label |
492
- | `--label-en <value>` (required) | English label |
493
- | `--description <value>` (required) | German description |
494
- | `--description-en <value>` (required) | English description |
495
- | `--scalar <value>` | Value type: string\|number\|boolean\|date\|enum\|address |
496
- | `--entity <value>` | Entity reference: party\|legalEntity |
605
+ | `--file <value>` (required) | The package file (JSON); reviewed scenario outputs are written into it |
497
606
 
498
- ### `generator input-key deprecate`
607
+ ### `generator package archive <package-id>`
499
608
 
500
- Deprecate a contract input key by key — no new draft may use it; sealed revisions keep working
609
+ Archive a contract package — it creates no new contracts; its key stays taken
501
610
 
611
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
502
612
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
503
613
 
504
- | Option | Description |
505
- |---|---|
506
- | `--key <value>` (required) | The registered key |
507
-
508
- ### `generator input-key list`
614
+ ### `generator package clone <source-revision-id>`
509
615
 
510
- List the contract input registry
616
+ Start a new draft from a package revision (parts, mask, code and scenarios copied)
511
617
 
512
- - **Effect:** read — changes nothing on the deployment
618
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
619
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
513
620
 
514
- ### `generator input-key plan`
621
+ ### `generator package create`
515
622
 
516
- Compare an input-key file with the registry: create, same, differs, deprecated (no write)
623
+ Create an empty contract package (identity + draft revision 1)
517
624
 
518
- - **Effect:** read — changes nothing on the deployment
519
-
520
- | Option | Description |
521
- |---|---|
522
- | `--file <value>` (required) | The input-key file (JSON array) |
523
-
524
- ### `generator list`
525
-
526
- List generator identities and their revisions.
527
-
528
- - **Effect:** read — changes nothing on the deployment
529
-
530
- ### `generator package apply`
531
-
532
- Create or revise a contract package from a file and seal it once its scenarios are reviewed
533
-
534
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
535
-
536
- | Option | Description |
537
- |---|---|
538
- | `--file <value>` (required) | The package file (JSON); reviewed scenario outputs are written into it |
539
-
540
- ### `generator package archive <package-id>`
541
-
542
- Archive a contract package — it creates no new contracts; its key stays taken
543
-
544
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
545
-
546
- ### `generator package clone <source-revision-id>`
547
-
548
- Start a new draft from a package revision (parts, mask, code and scenarios copied)
549
-
550
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
551
-
552
- ### `generator package create`
553
-
554
- Create an empty contract package (identity + draft revision 1)
555
-
556
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
625
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
626
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
557
627
 
558
628
  | Option | Description |
559
629
  |---|---|
@@ -567,6 +637,7 @@ Create an empty contract package (identity + draft revision 1)
567
637
 
568
638
  Discard a package draft (sealed revisions stay) — irreversible, plan unless --confirm
569
639
 
640
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
570
641
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
571
642
 
572
643
  | Option | Description |
@@ -578,12 +649,14 @@ Discard a package draft (sealed revisions stay) — irreversible, plan unless --
578
649
 
579
650
  List the tenant's contract packages with their current and draft revision
580
651
 
652
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
581
653
  - **Effect:** read — changes nothing on the deployment
582
654
 
583
655
  ### `generator package plan`
584
656
 
585
657
  Compare a package file with the environment: create, same or revise (no write)
586
658
 
659
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
587
660
  - **Effect:** read — changes nothing on the deployment
588
661
 
589
662
  | Option | Description |
@@ -594,6 +667,7 @@ Compare a package file with the environment: create, same or revise (no write)
594
667
 
595
668
  Seal a package draft — it becomes the current revision new contracts are created from
596
669
 
670
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
597
671
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
598
672
 
599
673
  | Option | Description |
@@ -604,12 +678,14 @@ Seal a package draft — it becomes the current revision new contracts are creat
604
678
 
605
679
  Show one package revision: input mask, parts, scenarios and its source-revision counter
606
680
 
681
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
607
682
  - **Effect:** read — changes nothing on the deployment
608
683
 
609
684
  ### `generator package test <revision-id>`
610
685
 
611
686
  Resolve a package revision for one input file without creating anything (the scenario output)
612
687
 
688
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
613
689
  - **Effect:** read — changes nothing on the deployment
614
690
 
615
691
  | Option | Description |
@@ -620,6 +696,7 @@ Resolve a package revision for one input file without creating anything (the sce
620
696
 
621
697
  Set a template's unit and declared Träger (by config keys).
622
698
 
699
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
623
700
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
624
701
 
625
702
  | Option | Description |
@@ -630,18 +707,20 @@ Set a template's unit and declared Träger (by config keys).
630
707
  | `--traeger <value>` | The Träger's config key (legal_entities.configKey). |
631
708
  | `--no-traeger` | The template declares no Träger. |
632
709
 
633
- ## Feedback
710
+ ## Feedback (platform operator)
634
711
 
635
712
  ### `feedback admins`
636
713
 
637
714
  List platform admins (valid feedback assignees).
638
715
 
716
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
639
717
  - **Effect:** read — changes nothing on the deployment
640
718
 
641
719
  ### `feedback assign <feedbackId> [assignee]`
642
720
 
643
721
  Assign a feedback item to a platform admin (userId or email), or --clear.
644
722
 
723
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
645
724
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
646
725
 
647
726
  | Option | Description |
@@ -652,12 +731,14 @@ Assign a feedback item to a platform admin (userId or email), or --clear.
652
731
 
653
732
  List the conversation (public replies + internal notes) on a feedback item.
654
733
 
734
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
655
735
  - **Effect:** read — changes nothing on the deployment
656
736
 
657
737
  ### `feedback create`
658
738
 
659
739
  File platform-level feedback (tenant-less, no screenshot). Needs _platform.feedback.read.
660
740
 
741
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
661
742
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
662
743
 
663
744
  | Option | Description |
@@ -675,18 +756,21 @@ File platform-level feedback (tenant-less, no screenshot). Needs _platform.feedb
675
756
 
676
757
  Link two feedback items together (platform admin).
677
758
 
759
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
678
760
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
679
761
 
680
762
  ### `feedback links <feedbackId>`
681
763
 
682
764
  List the feedback items linked to a given item (platform admin).
683
765
 
766
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
684
767
  - **Effect:** read — changes nothing on the deployment
685
768
 
686
769
  ### `feedback list`
687
770
 
688
771
  List feedback (active tenant, or --all-tenants for a platform admin).
689
772
 
773
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
690
774
  - **Effect:** read — changes nothing on the deployment
691
775
 
692
776
  | Option | Description |
@@ -707,12 +791,14 @@ List feedback (active tenant, or --all-tenants for a platform admin).
707
791
 
708
792
  Move a feedback item to another tenant (by target tenant slug).
709
793
 
794
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
710
795
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
711
796
 
712
797
  ### `feedback reply <feedbackId> <body>`
713
798
 
714
799
  Post a platform reply on a feedback item (public by default; --internal for a platform-only note).
715
800
 
801
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
716
802
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
717
803
 
718
804
  | Option | Description |
@@ -723,6 +809,7 @@ Post a platform reply on a feedback item (public by default; --internal for a pl
723
809
 
724
810
  Save a feedback item's screenshot to a local file.
725
811
 
812
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
726
813
  - **Effect:** read — changes nothing on the deployment
727
814
 
728
815
  | Option | Description |
@@ -734,6 +821,7 @@ Save a feedback item's screenshot to a local file.
734
821
 
735
822
  Set or clear a feedback item's deadline (platform admin).
736
823
 
824
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
737
825
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
738
826
 
739
827
  | Option | Description |
@@ -744,12 +832,14 @@ Set or clear a feedback item's deadline (platform admin).
744
832
 
745
833
  Manually move a feedback item to a board status.
746
834
 
835
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
747
836
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
748
837
 
749
838
  ### `feedback sync [--all-tenants]`
750
839
 
751
840
  Fetch GitHub issue state onto linked feedback (issue closed ⇒ resolved).
752
841
 
842
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
753
843
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
754
844
  - **Terminal only:** runs on the operator's own machine, never in a hosted chat
755
845
 
@@ -761,12 +851,14 @@ Fetch GitHub issue state onto linked feedback (issue closed ⇒ resolved).
761
851
 
762
852
  Attach an existing tag to a feedback item (uses the active --tenant).
763
853
 
854
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
764
855
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
765
856
 
766
857
  ### `feedback tags create <name>`
767
858
 
768
859
  Create a tag (platform admin). --color is a 6-hex code, e.g. d73a4a; --visibility is public (default) or platform.
769
860
 
861
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
770
862
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
771
863
 
772
864
  | Option | Description |
@@ -778,6 +870,7 @@ Create a tag (platform admin). --color is a 6-hex code, e.g. d73a4a; --visibilit
778
870
 
779
871
  Delete a tag and detach it from all items (platform admin) — plan unless --confirm.
780
872
 
873
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
781
874
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
782
875
 
783
876
  | Option | Description |
@@ -788,12 +881,14 @@ Delete a tag and detach it from all items (platform admin) — plan unless --con
788
881
 
789
882
  List the global feedback tag catalog (incl. platform-only tags).
790
883
 
884
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
791
885
  - **Effect:** read — changes nothing on the deployment
792
886
 
793
887
  ### `feedback tags set <tagId>`
794
888
 
795
889
  Change a tag's name, colour and/or visibility (platform admin).
796
890
 
891
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
797
892
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
798
893
 
799
894
  | Option | Description |
@@ -806,6 +901,7 @@ Change a tag's name, colour and/or visibility (platform admin).
806
901
 
807
902
  Create + link a GitHub issue for a feedback item (idempotent).
808
903
 
904
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
809
905
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
810
906
  - **Terminal only:** runs on the operator's own machine, never in a hosted chat
811
907
 
@@ -821,36 +917,34 @@ Create + link a GitHub issue for a feedback item (idempotent).
821
917
 
822
918
  Remove a link between two feedback items (platform admin).
823
919
 
920
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
824
921
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
825
922
 
826
923
  ### `feedback untag <feedbackId> <tagId>`
827
924
 
828
925
  Detach a tag from a feedback item (uses the active --tenant).
829
926
 
927
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
830
928
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
831
929
 
832
- ## Files
930
+ ## Files (platform operator)
833
931
 
834
932
  ### `files delete <key>`
835
933
 
836
934
  Delete a library file — plan unless --confirm; refused while a form uses it / Datei löschen
837
935
 
936
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
838
937
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
839
938
 
840
939
  | Option | Description |
841
940
  |---|---|
842
941
  | `--confirm` | Delete (without it, only the plan is printed). |
843
942
 
844
- ### `files list`
845
-
846
- List a tenant's file library (Vorlagen) / Dateien auflisten
847
-
848
- - **Effect:** read — changes nothing on the deployment
849
-
850
943
  ### `files put <key> <path>`
851
944
 
852
945
  Create or replace a library file by key / Datei anlegen oder ersetzen
853
946
 
947
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
854
948
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
855
949
 
856
950
  | Option | Description |
@@ -859,18 +953,29 @@ Create or replace a library file by key / Datei anlegen oder ersetzen
859
953
  | `--label-en <value>` | English label (required for a new key) |
860
954
  | `--file-name <value>` | Download name (default: the local file name) |
861
955
 
862
- ## Identity
956
+ ## Files (school token)
957
+
958
+ ### `files list`
959
+
960
+ List a tenant's file library (Vorlagen) / Dateien auflisten
961
+
962
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
963
+ - **Effect:** read — changes nothing on the deployment
964
+
965
+ ## Identity (own account)
863
966
 
864
967
  ### `tenants`
865
968
 
866
969
  List tenants you can access — every tenant for a platform admin.
867
970
 
971
+ - **Right:** own account — any signed-in token
868
972
  - **Effect:** read — changes nothing on the deployment
869
973
 
870
974
  ### `tokens create <name>`
871
975
 
872
976
  Create a new API token (shown once) — for yourself, or with --for for a tenant administrator to hand over (platform right `_platform.users.manage`).
873
977
 
978
+ - **Right:** own account — any signed-in token
874
979
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
875
980
 
876
981
  | Option | Description |
@@ -883,12 +988,14 @@ Create a new API token (shown once) — for yourself, or with --for for a tenant
883
988
 
884
989
  List your API tokens.
885
990
 
991
+ - **Right:** own account — any signed-in token
886
992
  - **Effect:** read — changes nothing on the deployment
887
993
 
888
994
  ### `tokens revoke <tokenId>`
889
995
 
890
996
  Revoke one of your API tokens — irreversible, plan unless --confirm.
891
997
 
998
+ - **Right:** own account — any signed-in token
892
999
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
893
1000
 
894
1001
  | Option | Description |
@@ -899,14 +1006,16 @@ Revoke one of your API tokens — irreversible, plan unless --confirm.
899
1006
 
900
1007
  Show the authenticated identity + permissions.
901
1008
 
1009
+ - **Right:** own account — any signed-in token
902
1010
  - **Effect:** read — changes nothing on the deployment
903
1011
 
904
- ## Imports
1012
+ ## Imports (platform operator)
905
1013
 
906
- ### `imports cleanup-orphaned`
1014
+ ### `platform imports cleanup-orphaned`
907
1015
 
908
1016
  Find/fail orphaned import runs (status 'running' with no active job). Dry-run unless --confirm.
909
1017
 
1018
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
910
1019
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
911
1020
 
912
1021
  | Option | Description |
@@ -914,16 +1023,32 @@ Find/fail orphaned import runs (status 'running' with no active job). Dry-run un
914
1023
  | `--all-tenants` | Scan every tenant (default: the active --tenant only). |
915
1024
  | `--confirm` | Actually mark orphans failed (default: dry-run preview). |
916
1025
 
1026
+ ### `platform imports trigger-all`
1027
+
1028
+ Trigger every file-less import across all accessible tenants — bulk, plan unless --confirm (--probe --confirm: test jobs only).
1029
+
1030
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1031
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
1032
+
1033
+ | Option | Description |
1034
+ |---|---|
1035
+ | `--probe` | With --confirm: run each importer without committing (test jobs). |
1036
+ | `--confirm` | Start the imports (without it, only the plan is printed). |
1037
+
1038
+ ## Imports (school token)
1039
+
917
1040
  ### `imports status`
918
1041
 
919
1042
  Show the active tenant's import controls + recent runs.
920
1043
 
1044
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
921
1045
  - **Effect:** read — changes nothing on the deployment
922
1046
 
923
1047
  ### `imports trigger`
924
1048
 
925
1049
  Trigger a manual import for the active tenant — destructive, plan unless --confirm.
926
1050
 
1051
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
927
1052
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
928
1053
  - **Terminal only:** runs on the operator's own machine, never in a hosted chat
929
1054
 
@@ -938,39 +1063,20 @@ Trigger a manual import for the active tenant — destructive, plan unless --con
938
1063
  | `--engage-password-stdin` | Read the Engage password from stdin. |
939
1064
  | `--engage-password-file <value>` | Read the Engage password from this file. |
940
1065
 
941
- ### `imports trigger-all`
942
-
943
- Trigger every file-less import across all accessible tenants — bulk, plan unless --confirm (--probe --confirm: test jobs only).
944
-
945
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
946
-
947
- | Option | Description |
948
- |---|---|
949
- | `--probe` | With --confirm: run each importer without committing (test jobs). |
950
- | `--confirm` | Start the imports (without it, only the plan is printed). |
951
-
952
- ## Introspection
953
-
954
- ### `call <fn> ...`
955
-
956
- Call any public Convex function by name (escape hatch).
957
-
958
- - **Effect:** by the called function's kind — a mutation or action writes
959
-
960
- | Option | Description |
961
- |---|---|
962
- | `--kind <value>` | Function kind: query\|mutation\|action. Without it only a query runs (checked against the offline spec); a write needs --kind. |
1066
+ ## Introspection (offline)
963
1067
 
964
1068
  ### `describe <fn>`
965
1069
 
966
1070
  Show one public function's args + return type (offline).
967
1071
 
1072
+ - **Right:** offline — no deployment
968
1073
  - **Effect:** read — changes nothing on the deployment
969
1074
 
970
1075
  ### `functions`
971
1076
 
972
1077
  List callable public functions (offline; for `call`).
973
1078
 
1079
+ - **Right:** offline — no deployment
974
1080
  - **Effect:** read — changes nothing on the deployment
975
1081
 
976
1082
  | Option | Description |
@@ -978,12 +1084,26 @@ List callable public functions (offline; for `call`).
978
1084
  | `--kind <value>` | Filter by RPC kind (query\|mutation\|action). |
979
1085
  | `--grep <value>` | Case-insensitive substring filter on the path. |
980
1086
 
981
- ## Jobs
1087
+ ## Introspection (own account)
1088
+
1089
+ ### `call <fn> ...`
1090
+
1091
+ Call any public Convex function by name (escape hatch).
1092
+
1093
+ - **Right:** own account — any signed-in token
1094
+ - **Effect:** by the called function's kind — a mutation or action writes
1095
+
1096
+ | Option | Description |
1097
+ |---|---|
1098
+ | `--kind <value>` | Function kind: query\|mutation\|action. Without it only a query runs (checked against the offline spec); a write needs --kind. |
1099
+
1100
+ ## Jobs (platform operator)
982
1101
 
983
1102
  ### `jobs cancel <jobId>`
984
1103
 
985
1104
  Cancel a queued/running job (the worker aborts; the domain row is failed) — irreversible, plan unless --confirm.
986
1105
 
1106
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
987
1107
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
988
1108
 
989
1109
  | Option | Description |
@@ -994,6 +1114,7 @@ Cancel a queued/running job (the worker aborts; the domain row is failed) — ir
994
1114
 
995
1115
  List jobs newest-first (platform-admin). --status / --kind filter.
996
1116
 
1117
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
997
1118
  - **Effect:** read — changes nothing on the deployment
998
1119
 
999
1120
  | Option | Description |
@@ -1007,6 +1128,7 @@ List jobs newest-first (platform-admin). --status / --kind filter.
1007
1128
 
1008
1129
  Tail a job's captured worker output (oldest-first).
1009
1130
 
1131
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1010
1132
  - **Effect:** read — changes nothing on the deployment
1011
1133
 
1012
1134
  | Option | Description |
@@ -1017,14 +1139,16 @@ Tail a job's captured worker output (oldest-first).
1017
1139
 
1018
1140
  Show one job's full detail + per-attempt run timeline.
1019
1141
 
1142
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1020
1143
  - **Effect:** read — changes nothing on the deployment
1021
1144
 
1022
- ## Marketing
1145
+ ## Marketing (platform operator)
1023
1146
 
1024
1147
  ### `demo link create`
1025
1148
 
1026
1149
  Create personalised demo video links (one recipient, or a CSV). Needs _platform.demoLinks.manage.
1027
1150
 
1151
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1028
1152
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
1029
1153
 
1030
1154
  | Option | Description |
@@ -1042,6 +1166,7 @@ Create personalised demo video links (one recipient, or a CSV). Needs _platform.
1042
1166
 
1043
1167
  Erase a demo link: the recipient's name and address and everything recorded for it. Needs _platform.demoLinks.manage.
1044
1168
 
1169
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1045
1170
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
1046
1171
 
1047
1172
  | Option | Description |
@@ -1052,6 +1177,7 @@ Erase a demo link: the recipient's name and address and everything recorded for
1052
1177
 
1053
1178
  List demo links, newest first. Needs _platform.demoLinks.manage.
1054
1179
 
1180
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1055
1181
  - **Effect:** read — changes nothing on the deployment
1056
1182
 
1057
1183
  | Option | Description |
@@ -1062,6 +1188,7 @@ List demo links, newest first. Needs _platform.demoLinks.manage.
1062
1188
 
1063
1189
  Stop recording for a demo link — plan unless --confirm; the page keeps working and its statistics stay. Needs _platform.demoLinks.manage.
1064
1190
 
1191
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1065
1192
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
1066
1193
 
1067
1194
  | Option | Description |
@@ -1072,6 +1199,7 @@ Stop recording for a demo link — plan unless --confirm; the page keeps working
1072
1199
 
1073
1200
  Who opened their demo link, when, how often, how long per video and per demo page. Needs _platform.demoLinks.manage.
1074
1201
 
1202
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1075
1203
  - **Effect:** read — changes nothing on the deployment
1076
1204
 
1077
1205
  | Option | Description |
@@ -1082,74 +1210,16 @@ Who opened their demo link, when, how often, how long per video and per demo pag
1082
1210
 
1083
1211
  List the demo video catalogue (the ids a demo link can point at).
1084
1212
 
1213
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1085
1214
  - **Effect:** read — changes nothing on the deployment
1086
1215
 
1087
- ## Notifications
1088
-
1089
- ### `notifications chrome set`
1090
-
1091
- Set the school's letter frame. Greeting and sign-off are set in BOTH languages at once; both EMPTY clears that field back to the platform wording.
1092
-
1093
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1094
-
1095
- | Option | Description |
1096
- |---|---|
1097
- | `--greeting-de <value>` | Opening line, German |
1098
- | `--greeting-en <value>` | Opening line, English |
1099
- | `--closing-de <value>` | Sign-off, German |
1100
- | `--closing-en <value>` | Sign-off, English |
1101
- | `--sender-name <value>` | Name the school signs with (empty string clears it) |
1102
-
1103
- ### `notifications chrome show`
1104
-
1105
- The school's letter frame (greeting and sign-off per language, sender name) and the platform wording each falls back to.
1106
-
1107
- - **Effect:** read — changes nothing on the deployment
1108
-
1109
- ### `notifications letters list`
1110
-
1111
- The letter catalog for one school: what it can reword, and what it already did.
1112
-
1113
- - **Effect:** read — changes nothing on the deployment
1114
-
1115
- ### `notifications letters reset <templateId>`
1116
-
1117
- Drop this school's deviations — named blocks, or the whole letter with --all.
1118
-
1119
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1120
-
1121
- | Option | Description |
1122
- |---|---|
1123
- | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1124
- | `--slot <value>` | Block key to reset (repeatable) |
1125
- | `--all` | Reset every block of this letter |
1126
-
1127
- ### `notifications letters set <templateId>`
1128
-
1129
- Reword one or more blocks of a letter for this school (merge — untouched blocks stay as they are).
1130
-
1131
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1132
-
1133
- | Option | Description |
1134
- |---|---|
1135
- | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1136
- | `--slot <value>` | <blockKey>=<text> (repeatable) |
1137
- | `--slot-file <value>` | <blockKey>=<path> — read the text from a local file (repeatable) |
1138
-
1139
- ### `notifications letters show <templateId>`
1140
-
1141
- One letter block by block: the current text, whether it deviates, and the placeholders it may use.
1142
-
1143
- - **Effect:** read — changes nothing on the deployment
1144
-
1145
- | Option | Description |
1146
- |---|---|
1147
- | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1216
+ ## Notifications (platform operator)
1148
1217
 
1149
- ### `notifications list`
1218
+ ### `platform notifications list`
1150
1219
 
1151
1220
  List mail deliveries newest-first (platform-admin). Filter by --status, --template, --to, --since; the smtp column is the relay's answer (`250 … queued as <id>` = accepted).
1152
1221
 
1222
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1153
1223
  - **Effect:** read — changes nothing on the deployment
1154
1224
 
1155
1225
  | Option | Description |
@@ -1161,124 +1231,113 @@ List mail deliveries newest-first (platform-admin). Filter by --status, --templa
1161
1231
  | `--limit <value>` | Max rows (default 100). |
1162
1232
  | `--all` | Fetch every page (ignores --limit). |
1163
1233
 
1164
- ### `notifications retry <deliveryId>`
1234
+ ### `platform notifications retry <deliveryId>`
1165
1235
 
1166
1236
  Retry a DEAD delivery: a fresh attempt through the normal claim path. Check `show` first — a `possibleDuplicate` row may already have reached the recipient.
1167
1237
 
1238
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1168
1239
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
1169
1240
 
1170
- ### `notifications self-test`
1241
+ ### `platform notifications self-test`
1171
1242
 
1172
1243
  Resolve the deployment's mail config, verify the SMTP connection + credentials, and send ONE test mail to --to with the raw SMTP transcript. A redirect deployment redirects the test too; dry sends nothing.
1173
1244
 
1245
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1174
1246
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
1175
1247
 
1176
1248
  | Option | Description |
1177
1249
  |---|---|
1178
1250
  | `--to <value>` (required) | Explicit recipient (never defaulted). |
1179
1251
 
1180
- ### `notifications show <deliveryId>`
1252
+ ### `platform notifications show <deliveryId>`
1181
1253
 
1182
1254
  Show one delivery in full: SMTP evidence, lease, sweeper bookkeeping, template summary.
1183
1255
 
1256
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1184
1257
  - **Effect:** read — changes nothing on the deployment
1185
1258
 
1186
- ### `notifications sweeper-status`
1259
+ ### `platform notifications sweeper-status`
1187
1260
 
1188
1261
  Last tick of the notification sweeper cron (deadLastHour is the number to watch).
1189
1262
 
1263
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
1190
1264
  - **Effect:** read — changes nothing on the deployment
1191
1265
 
1192
- ## Offer
1266
+ ## Notifications (school token)
1193
1267
 
1194
- ### `offer apply`
1268
+ ### `notifications chrome set`
1195
1269
 
1196
- Idempotent create/update; with --publish, release the draft when it differs from what is live
1270
+ Set the school's letter frame. Greeting and sign-off are set in BOTH languages at once; both EMPTY clears that field back to the platform wording.
1197
1271
 
1272
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1198
1273
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
1199
1274
 
1200
1275
  | Option | Description |
1201
1276
  |---|---|
1202
- | `--dir <value>` (required) | Bundle directory |
1203
- | `--publish` | Release the draft when it says something the live generation does not |
1204
- | `--stage <value>` | Publish stage: 'external' (default, goes live) or 'internal' (stage as the testable candidate only) |
1205
-
1206
- ### `offer archive`
1207
-
1208
- Archive (soft-delete) an offer — `offer restore` brings it back, never orphans data
1277
+ | `--greeting-de <value>` | Opening line, German |
1278
+ | `--greeting-en <value>` | Opening line, English |
1279
+ | `--closing-de <value>` | Sign-off, German |
1280
+ | `--closing-en <value>` | Sign-off, English |
1281
+ | `--sender-name <value>` | Name the school signs with (empty string clears it) |
1209
1282
 
1210
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1283
+ ### `notifications chrome show`
1211
1284
 
1212
- | Option | Description |
1213
- |---|---|
1214
- | `--offer <value>` | Offer slug (required) |
1285
+ The school's letter frame (greeting and sign-off per language, sender name) and the platform wording each falls back to.
1215
1286
 
1216
- ### `offer capacity set`
1287
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1288
+ - **Effect:** read — changes nothing on the deployment
1217
1289
 
1218
- Set seat capacity and/or open-state for one run × level cell
1290
+ ### `notifications letters list`
1219
1291
 
1220
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1292
+ The letter catalog for one school: what it can reword, and what it already did.
1221
1293
 
1222
- | Option | Description |
1223
- |---|---|
1224
- | `--offer <value>` | Offer slug (required) |
1225
- | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
1226
- | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
1227
- | `--capacity <value>` | Seat capacity (whole number) or "unlimited" |
1228
- | `--open` | Open this cell |
1229
- | `--close` | Close this cell |
1294
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1295
+ - **Effect:** read — changes nothing on the deployment
1230
1296
 
1231
- ### `offer create`
1297
+ ### `notifications letters reset <templateId>`
1232
1298
 
1233
- Create a draft offer (manifest) — title (= program name) + optional unit
1299
+ Drop this school's deviations — named blocks, or the whole letter with --all.
1234
1300
 
1301
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1235
1302
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
1236
1303
 
1237
1304
  | Option | Description |
1238
1305
  |---|---|
1239
- | `--offer <value>` | New offer slug (identity key) (required) |
1240
- | `--title <value>` (required) | Bare program name in German — no run/year or levels (those are separate; see `offer init --title`) |
1241
- | `--title-en <value>` (required) | The same title in English (every name a reader sees has both) |
1242
- | `--unit <value>` | Pedagogic unit (school) the offer belongs to — its config key |
1306
+ | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1307
+ | `--slot <value>` | Block key to reset (repeatable) |
1308
+ | `--all` | Reset every block of this letter |
1243
1309
 
1244
- ### `offer delete`
1310
+ ### `notifications letters set <templateId>`
1245
1311
 
1246
- HARD-delete an offer (manifest + versions + workflow + smartform + program + stages + runs) — irreversible, plan unless --confirm; refused while any application exists. To take an offer down reversibly use `offer archive`.
1312
+ Reword one or more blocks of a letter for this school (merge — untouched blocks stay as they are).
1247
1313
 
1248
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
1314
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1315
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
1249
1316
 
1250
1317
  | Option | Description |
1251
1318
  |---|---|
1252
- | `--offer <value>` | Offer slug (required) |
1253
- | `--confirm` | Delete for good (without it, only the plan is printed). |
1319
+ | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1320
+ | `--slot <value>` | <blockKey>=<text> (repeatable) |
1321
+ | `--slot-file <value>` | <blockKey>=<path> — read the text from a local file (repeatable) |
1254
1322
 
1255
- ### `offer diff`
1323
+ ### `notifications letters show <templateId>`
1256
1324
 
1257
- Read-only remote↔local drift (no local validation)
1325
+ One letter block by block: the current text, whether it deviates, and the placeholders it may use.
1258
1326
 
1327
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
1259
1328
  - **Effect:** read — changes nothing on the deployment
1260
1329
 
1261
1330
  | Option | Description |
1262
1331
  |---|---|
1263
- | `--dir <value>` (required) | Bundle directory |
1264
-
1265
- ### `offer export`
1266
-
1267
- Pull an offer's published generation (manifest + smartforms + workflow + program) into a bundle; --draft pulls the draft
1268
-
1269
- - **Effect:** read — changes nothing on the deployment
1332
+ | `--locale <value>` | Letter language (de\|en) — required; each language is worded on its own |
1270
1333
 
1271
- | Option | Description |
1272
- |---|---|
1273
- | `--offer <value>` | Manifest slug to export (required) |
1274
- | `--out <value>` (required) | Output bundle directory (refused when not empty, unless --force) |
1275
- | `--force` | Overwrite an existing --out file. |
1276
- | `--draft` | Export the editable draft instead of the published generation (the live head, else the staged candidate) |
1334
+ ## Offer (offline)
1277
1335
 
1278
1336
  ### `offer form add`
1279
1337
 
1280
1338
  Scaffold a new SmartForm into the bundle (one section, default outcome)
1281
1339
 
1340
+ - **Right:** offline — no deployment
1282
1341
  - **Effect:** offline — edits local files only
1283
1342
 
1284
1343
  | Option | Description |
@@ -1292,6 +1351,7 @@ Scaffold a new SmartForm into the bundle (one section, default outcome)
1292
1351
 
1293
1352
  Add a computed (derived) field to a section
1294
1353
 
1354
+ - **Right:** offline — no deployment
1295
1355
  - **Effect:** offline — edits local files only
1296
1356
 
1297
1357
  | Option | Description |
@@ -1306,6 +1366,7 @@ Add a computed (derived) field to a section
1306
1366
 
1307
1367
  Remove a computed field from a SmartForm
1308
1368
 
1369
+ - **Right:** offline — no deployment
1309
1370
  - **Effect:** offline — edits local files only
1310
1371
 
1311
1372
  | Option | Description |
@@ -1318,6 +1379,7 @@ Remove a computed field from a SmartForm
1318
1379
 
1319
1380
  Update a computed field's expression
1320
1381
 
1382
+ - **Right:** offline — no deployment
1321
1383
  - **Effect:** offline — edits local files only
1322
1384
 
1323
1385
  | Option | Description |
@@ -1331,6 +1393,7 @@ Update a computed field's expression
1331
1393
 
1332
1394
  Remove a SmartForm from the bundle (fails if a form node binds it)
1333
1395
 
1396
+ - **Right:** offline — no deployment
1334
1397
  - **Effect:** offline — edits local files only
1335
1398
 
1336
1399
  | Option | Description |
@@ -1342,6 +1405,7 @@ Remove a SmartForm from the bundle (fails if a form node binds it)
1342
1405
 
1343
1406
  Add an effect (person|organization|relationship|fieldMap) — materialize Person/Org/Relationship/fieldMap
1344
1407
 
1408
+ - **Right:** offline — no deployment
1345
1409
  - **Effect:** offline — edits local files only
1346
1410
 
1347
1411
  | Option | Description |
@@ -1368,6 +1432,7 @@ Add an effect (person|organization|relationship|fieldMap) — materialize Person
1368
1432
 
1369
1433
  Remove an effect from a SmartForm
1370
1434
 
1435
+ - **Right:** offline — no deployment
1371
1436
  - **Effect:** offline — edits local files only
1372
1437
 
1373
1438
  | Option | Description |
@@ -1380,6 +1445,7 @@ Remove an effect from a SmartForm
1380
1445
 
1381
1446
  Update an effect (per-kind: when/role/policy/nameFrom (org)/bucket/identity/orgKind/from/to/relKind/target/map)
1382
1447
 
1448
+ - **Right:** offline — no deployment
1383
1449
  - **Effect:** offline — edits local files only
1384
1450
 
1385
1451
  | Option | Description |
@@ -1405,6 +1471,7 @@ Update an effect (per-kind: when/role/policy/nameFrom (org)/bucket/identity/orgK
1405
1471
 
1406
1472
  Declare the environment keys the form reads ($env.<key>.<field>) and sample them per scenario
1407
1473
 
1474
+ - **Right:** offline — no deployment
1408
1475
  - **Effect:** offline — edits local files only
1409
1476
 
1410
1477
  | Option | Description |
@@ -1418,6 +1485,7 @@ Declare the environment keys the form reads ($env.<key>.<field>) and sample them
1418
1485
 
1419
1486
  Add a field to a section (types: string|boolean|date|enum|email|tel|address|docRef)
1420
1487
 
1488
+ - **Right:** offline — no deployment
1421
1489
  - **Effect:** offline — edits local files only
1422
1490
 
1423
1491
  | Option | Description |
@@ -1457,6 +1525,7 @@ Add a field to a section (types: string|boolean|date|enum|email|tel|address|docR
1457
1525
 
1458
1526
  Attach a tenant library file (plexus-cli files) to a field by key
1459
1527
 
1528
+ - **Right:** offline — no deployment
1460
1529
  - **Effect:** offline — edits local files only
1461
1530
 
1462
1531
  | Option | Description |
@@ -1473,6 +1542,7 @@ Attach a tenant library file (plexus-cli files) to a field by key
1473
1542
 
1474
1543
  Remove a field from a SmartForm
1475
1544
 
1545
+ - **Right:** offline — no deployment
1476
1546
  - **Effect:** offline — edits local files only
1477
1547
 
1478
1548
  | Option | Description |
@@ -1485,6 +1555,7 @@ Remove a field from a SmartForm
1485
1555
 
1486
1556
  Remove a tenant library file attachment from a field
1487
1557
 
1558
+ - **Right:** offline — no deployment
1488
1559
  - **Effect:** offline — edits local files only
1489
1560
 
1490
1561
  | Option | Description |
@@ -1498,6 +1569,7 @@ Remove a tenant library file attachment from a field
1498
1569
 
1499
1570
  Export a form field (or take the export back) and re-stamp the workflow's formExports in the same write
1500
1571
 
1572
+ - **Right:** offline — no deployment
1501
1573
  - **Effect:** offline — edits local files only
1502
1574
 
1503
1575
  | Option | Description |
@@ -1512,6 +1584,7 @@ Export a form field (or take the export back) and re-stamp the workflow's formEx
1512
1584
 
1513
1585
  Reorder a field within its section, or move it into another section (--section)
1514
1586
 
1587
+ - **Right:** offline — no deployment
1515
1588
  - **Effect:** offline — edits local files only
1516
1589
 
1517
1590
  | Option | Description |
@@ -1529,6 +1602,7 @@ Reorder a field within its section, or move it into another section (--section)
1529
1602
 
1530
1603
  Set a field's validation/visibility expressions and flags
1531
1604
 
1605
+ - **Right:** offline — no deployment
1532
1606
  - **Effect:** offline — edits local files only
1533
1607
 
1534
1608
  | Option | Description |
@@ -1571,6 +1645,7 @@ Set a field's validation/visibility expressions and flags
1571
1645
 
1572
1646
  List the bundle's SmartForms
1573
1647
 
1648
+ - **Right:** offline — no deployment
1574
1649
  - **Effect:** read — changes nothing on the deployment
1575
1650
 
1576
1651
  | Option | Description |
@@ -1581,6 +1656,7 @@ List the bundle's SmartForms
1581
1656
 
1582
1657
  Add an outcome to a SmartForm
1583
1658
 
1659
+ - **Right:** offline — no deployment
1584
1660
  - **Effect:** offline — edits local files only
1585
1661
 
1586
1662
  | Option | Description |
@@ -1599,6 +1675,7 @@ Add an outcome to a SmartForm
1599
1675
 
1600
1676
  Remove an outcome from a SmartForm
1601
1677
 
1678
+ - **Right:** offline — no deployment
1602
1679
  - **Effect:** offline — edits local files only
1603
1680
 
1604
1681
  | Option | Description |
@@ -1611,6 +1688,7 @@ Remove an outcome from a SmartForm
1611
1688
 
1612
1689
  Update an outcome's when/label/flags
1613
1690
 
1691
+ - **Right:** offline — no deployment
1614
1692
  - **Effect:** offline — edits local files only
1615
1693
 
1616
1694
  | Option | Description |
@@ -1629,6 +1707,7 @@ Update an outcome's when/label/flags
1629
1707
 
1630
1708
  Add a repeated (array-of-records) field to a section
1631
1709
 
1710
+ - **Right:** offline — no deployment
1632
1711
  - **Effect:** offline — edits local files only
1633
1712
 
1634
1713
  | Option | Description |
@@ -1649,6 +1728,7 @@ Add a repeated (array-of-records) field to a section
1649
1728
 
1650
1729
  Remove a repeated field from a SmartForm
1651
1730
 
1731
+ - **Right:** offline — no deployment
1652
1732
  - **Effect:** offline — edits local files only
1653
1733
 
1654
1734
  | Option | Description |
@@ -1661,6 +1741,7 @@ Remove a repeated field from a SmartForm
1661
1741
 
1662
1742
  Update a repeated field's label/min/max/uniqueBy
1663
1743
 
1744
+ - **Right:** offline — no deployment
1664
1745
  - **Effect:** offline — edits local files only
1665
1746
 
1666
1747
  | Option | Description |
@@ -1679,6 +1760,7 @@ Update a repeated field's label/min/max/uniqueBy
1679
1760
 
1680
1761
  Add a test scenario (one-click test-mode prefill; the publish gate submits it)
1681
1762
 
1763
+ - **Right:** offline — no deployment
1682
1764
  - **Effect:** offline — edits local files only
1683
1765
 
1684
1766
  | Option | Description |
@@ -1699,6 +1781,7 @@ Add a test scenario (one-click test-mode prefill; the publish gate submits it)
1699
1781
 
1700
1782
  Remove a test scenario
1701
1783
 
1784
+ - **Right:** offline — no deployment
1702
1785
  - **Effect:** offline — edits local files only
1703
1786
 
1704
1787
  | Option | Description |
@@ -1711,6 +1794,7 @@ Remove a test scenario
1711
1794
 
1712
1795
  Edit a test scenario (--prefill merges, --prefill-json replaces, --unset removes keys)
1713
1796
 
1797
+ - **Right:** offline — no deployment
1714
1798
  - **Effect:** offline — edits local files only
1715
1799
 
1716
1800
  | Option | Description |
@@ -1731,6 +1815,7 @@ Edit a test scenario (--prefill merges, --prefill-json replaces, --unset removes
1731
1815
 
1732
1816
  Add a section to a SmartForm
1733
1817
 
1818
+ - **Right:** offline — no deployment
1734
1819
  - **Effect:** offline — edits local files only
1735
1820
 
1736
1821
  | Option | Description |
@@ -1749,6 +1834,7 @@ Add a section to a SmartForm
1749
1834
 
1750
1835
  Remove a section (and its fields) from a SmartForm
1751
1836
 
1837
+ - **Right:** offline — no deployment
1752
1838
  - **Effect:** offline — edits local files only
1753
1839
 
1754
1840
  | Option | Description |
@@ -1761,6 +1847,7 @@ Remove a section (and its fields) from a SmartForm
1761
1847
 
1762
1848
  Reorder a section among its siblings
1763
1849
 
1850
+ - **Right:** offline — no deployment
1764
1851
  - **Effect:** offline — edits local files only
1765
1852
 
1766
1853
  | Option | Description |
@@ -1777,6 +1864,7 @@ Reorder a section among its siblings
1777
1864
 
1778
1865
  Update a section's label/notice/visibleIf/visibleTo/parent
1779
1866
 
1867
+ - **Right:** offline — no deployment
1780
1868
  - **Effect:** offline — edits local files only
1781
1869
 
1782
1870
  | Option | Description |
@@ -1796,6 +1884,7 @@ Update a section's label/notice/visibleIf/visibleTo/parent
1796
1884
 
1797
1885
  Edit a SmartForm's label
1798
1886
 
1887
+ - **Right:** offline — no deployment
1799
1888
  - **Effect:** offline — edits local files only
1800
1889
 
1801
1890
  | Option | Description |
@@ -1809,6 +1898,7 @@ Edit a SmartForm's label
1809
1898
 
1810
1899
  Show one SmartForm's sections/fields/outcomes/effects
1811
1900
 
1901
+ - **Right:** offline — no deployment
1812
1902
  - **Effect:** read — changes nothing on the deployment
1813
1903
 
1814
1904
  | Option | Description |
@@ -1820,6 +1910,7 @@ Show one SmartForm's sections/fields/outcomes/effects
1820
1910
 
1821
1911
  Scaffold a complete, publishable, minimal linear offer bundle on disk
1822
1912
 
1913
+ - **Right:** offline — no deployment
1823
1914
  - **Effect:** offline — edits local files only
1824
1915
 
1825
1916
  | Option | Description |
@@ -1833,263 +1924,51 @@ Scaffold a complete, publishable, minimal linear offer bundle on disk
1833
1924
  | `--out <value>` | Output directory (default: offers/<tenant>/<slug>; refused when not empty, unless --force) |
1834
1925
  | `--force` | Overwrite an existing --out file. |
1835
1926
 
1836
- ### `offer level add`
1927
+ ### `offer manifest set`
1837
1928
 
1838
- Add a level (Klassenstufe) to an offer
1929
+ Set the offer's display order
1839
1930
 
1840
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1931
+ - **Right:** offline — no deployment
1932
+ - **Effect:** offline — edits local files only
1841
1933
 
1842
1934
  | Option | Description |
1843
1935
  |---|---|
1844
- | `--offer <value>` | Offer slug (required) |
1845
- | `--name <value>` (required) | Level name in German |
1846
- | `--name-en <value>` (required) | Level name in English |
1847
- | `--grade <value>` | Grade level (integer) |
1848
- | `--key <value>` | Stable level key, as in bundle.yaml program.stages[].key (lowercase slug). Without it the key is derived from the German --name — and keeps that value after a rename |
1936
+ | `--dir <value>` (required) | Bundle directory |
1937
+ | `--sort-order <value>` (required) | Display order among the unit's offers, lower = first ("" clears) |
1849
1938
 
1850
- ### `offer level archive`
1939
+ ### `offer upgrade`
1851
1940
 
1852
- Soft-delete (archive) a level — retired from the portal, restorable. Refused while an active application sits on the level
1941
+ Rewrite a bundle exported in an older format into the current one (offline; dry run unless --write)
1853
1942
 
1854
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1943
+ - **Right:** offline — no deployment
1944
+ - **Effect:** offline — edits local files only
1855
1945
 
1856
1946
  | Option | Description |
1857
1947
  |---|---|
1858
- | `--offer <value>` | Offer slug (required) |
1859
- | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
1860
-
1861
- ### `offer level move`
1862
-
1863
- Reorder a level among the offer's levels (--before|--after another level)
1864
-
1865
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1866
-
1867
- | Option | Description |
1868
- |---|---|
1869
- | `--offer <value>` | Offer slug (required) |
1870
- | `--level <value>` (required) | Key of the level to move |
1871
- | `--before <value>` | Place before the level with this key |
1872
- | `--after <value>` | Place after the level with this key |
1873
-
1874
- ### `offer level restore`
1875
-
1876
- Restore an archived level
1877
-
1878
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1879
-
1880
- | Option | Description |
1881
- |---|---|
1882
- | `--offer <value>` | Offer slug (required) |
1883
- | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
1884
-
1885
- ### `offer level set`
1886
-
1887
- Change a level's name and/or grade
1888
-
1889
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1890
-
1891
- | Option | Description |
1892
- |---|---|
1893
- | `--offer <value>` | Offer slug (required) |
1894
- | `--level <value>` (required) | Key of the level to update (bundle.yaml program.stages[].key) |
1895
- | `--name <value>` | New level name in German |
1896
- | `--name-en <value>` | New level name in English |
1897
- | `--grade <value>` | New grade level (integer) |
1898
-
1899
- ### `offer list`
1900
-
1901
- List offers (manifests) + publish state for a tenant
1902
-
1903
- - **Effect:** read — changes nothing on the deployment
1904
-
1905
- | Option | Description |
1906
- |---|---|
1907
- | `--all` | Include archived (soft-deleted) offers |
1908
-
1909
- ### `offer manifest set`
1910
-
1911
- Set the offer's display order
1912
-
1913
- - **Effect:** offline — edits local files only
1914
-
1915
- | Option | Description |
1916
- |---|---|
1917
- | `--dir <value>` (required) | Bundle directory |
1918
- | `--sort-order <value>` (required) | Display order among the unit's offers, lower = first ("" clears) |
1919
-
1920
- ### `offer plan`
1921
-
1922
- Read-only: local validation (resolver pins stamped from the environment, as publish would) + remote↔local diff (create/change/same)
1923
-
1924
- - **Effect:** read — changes nothing on the deployment
1925
-
1926
- | Option | Description |
1927
- |---|---|
1928
- | `--dir <value>` (required) | Bundle directory |
1929
-
1930
- ### `offer restore`
1931
-
1932
- Restore an archived offer
1933
-
1934
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1935
-
1936
- | Option | Description |
1937
- |---|---|
1938
- | `--offer <value>` | Offer slug (required) |
1939
-
1940
- ### `offer run add`
1941
-
1942
- Add a run (Schuljahr) to an offer
1943
-
1944
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1945
-
1946
- | Option | Description |
1947
- |---|---|
1948
- | `--offer <value>` | Offer slug (required) |
1949
- | `--name <value>` (required) | Run name in German (e.g. Schuljahr 2026/27) |
1950
- | `--name-en <value>` (required) | Run name in English (e.g. School year 2026/27) |
1951
- | `--key <value>` | Stable run key, as in bundle.yaml program.runs[].key (lowercase slug, e.g. 2026-27). Without it the key is derived from the German --name — and keeps that value after a rename |
1952
- | `--start <value>` | Start date (ISO, e.g. 2026-08-01) |
1953
- | `--end <value>` | End date (ISO) |
1954
- | `--capacity <value>` | Default seat capacity per level |
1955
- | `--closed` | Create closed (default: open) |
1956
-
1957
- ### `offer run archive`
1958
-
1959
- Soft-delete (archive) a run — retired from the portal, restorable
1960
-
1961
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1962
-
1963
- | Option | Description |
1964
- |---|---|
1965
- | `--offer <value>` | Offer slug (required) |
1966
- | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
1967
-
1968
- ### `offer run restore`
1969
-
1970
- Restore an archived run
1971
-
1972
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1973
-
1974
- | Option | Description |
1975
- |---|---|
1976
- | `--offer <value>` | Offer slug (required) |
1977
- | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
1978
-
1979
- ### `offer run set`
1980
-
1981
- Update a run: rename / dates
1982
-
1983
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1984
-
1985
- | Option | Description |
1986
- |---|---|
1987
- | `--offer <value>` | Offer slug (required) |
1988
- | `--run <value>` (required) | Key of the run to update (bundle.yaml program.runs[].key) |
1989
- | `--name <value>` | New run name in German |
1990
- | `--name-en <value>` | New run name in English |
1991
- | `--start <value>` | Start date (ISO) |
1992
- | `--end <value>` | End date (ISO) |
1993
-
1994
- ### `offer set`
1995
-
1996
- Update an offer's title and/or pedagogic unit
1997
-
1998
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
1999
-
2000
- | Option | Description |
2001
- |---|---|
2002
- | `--offer <value>` | Offer slug (required) |
2003
- | `--title <value>` | New bare offer title in German (offer_versions.label, the offer-title SoT) — no run/year or levels (those are separate entities) |
2004
- | `--title-en <value>` | New offer title in English — required with --title: the English is never copied from the German, and a title without English is refused |
2005
- | `--program-name <value>` | Rename the underlying master-data program in German (programs.name, staff master-data only — distinct from --title); needs --program-name-en |
2006
- | `--program-name-en <value>` | The program's name in English (with --program-name) |
2007
- | `--unit <value>` | New pedagogic unit (school) — its config key |
2008
- | `--sort-order <value>` | Display order among the unit's offers (lower = first, non-negative number) |
2009
-
2010
- ### `offer show`
2011
-
2012
- Full view of an offer: title, unit, levels, runs, capacity, state (incl. archived)
2013
-
2014
- - **Effect:** read — changes nothing on the deployment
2015
-
2016
- | Option | Description |
2017
- |---|---|
2018
- | `--offer <value>` | Offer slug (required) |
2019
-
2020
- ### `offer status`
2021
-
2022
- Publish state + whether program/pedagogy links resolve (applyable?)
2023
-
2024
- - **Effect:** read — changes nothing on the deployment
2025
-
2026
- | Option | Description |
2027
- |---|---|
2028
- | `--offer <value>` | Offer slug (required) |
2029
-
2030
- ### `offer unit create`
2031
-
2032
- Create a pedagogic unit (school) — makes it applyable: creates the unit + its pedagogy bridge
2033
-
2034
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
2035
-
2036
- | Option | Description |
2037
- |---|---|
2038
- | `--name <value>` (required) | Unit (school) name in German |
2039
- | `--name-en <value>` (required) | Unit (school) name in English |
2040
- | `--kind <value>` | Unit kind (default school): school\|kindergarten\|after_school_care\|department\|site\|other |
2041
- | `--parent <value>` | Parent unit (nest under it) — its id, config key or URL slug |
2042
-
2043
- ### `offer unit ensure-pedagogy`
2044
-
2045
- Mark an EXISTING unit as a pedagogy unit (add its bridge) — idempotent
2046
-
2047
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
2048
-
2049
- | Option | Description |
2050
- |---|---|
2051
- | `--unit <value>` (required) | Unit to upgrade — its id, config key or URL slug |
2052
-
2053
- ### `offer upgrade`
2054
-
2055
- Rewrite a bundle exported in an older format into the current one (offline; dry run unless --write)
2056
-
2057
- - **Effect:** offline — edits local files only
2058
-
2059
- | Option | Description |
2060
- |---|---|
2061
- | `--dir <value>` (required) | Bundle directory (read) |
2062
- | `--write` | Write the upgraded bundle (default: dry run) |
2063
- | `--out <value>` | With --write: write a full copy here (an empty directory) instead of over --dir |
2064
- | `--semantic <value>` | <node>.<outcome>=<granted\|rejected\|waitlisted\|other> — the meaning of an outcome the upgrade will not assume |
2065
- | `--waitlist-policy <value>` | <node>=<arrival\|manual>:<true\|false> — a waitlist's queue order and automatic promotion |
2066
- | `--payee <value>` | <node>=<Träger key> — the payee of an online payment |
2067
- | `--answers <value>` | JSON file { semantics, waitlistPolicy, payee } with the same answers |
1948
+ | `--dir <value>` (required) | Bundle directory (read) |
1949
+ | `--write` | Write the upgraded bundle (default: dry run) |
1950
+ | `--out <value>` | With --write: write a full copy here (an empty directory) instead of over --dir |
1951
+ | `--semantic <value>` | <node>.<outcome>=<granted\|rejected\|waitlisted\|other> — the meaning of an outcome the upgrade will not assume |
1952
+ | `--waitlist-policy <value>` | <node>=<arrival\|manual>:<true\|false> — a waitlist's queue order and automatic promotion |
1953
+ | `--payee <value>` | <node>=<Träger key> — the payee of an online payment |
1954
+ | `--answers <value>` | JSON file { semantics, waitlistPolicy, payee } with the same answers |
2068
1955
 
2069
1956
  ### `offer validate`
2070
1957
 
2071
1958
  Run the publish-gate validators locally against a bundle (no deployment)
2072
1959
 
1960
+ - **Right:** offline — no deployment
2073
1961
  - **Effect:** read — changes nothing on the deployment
2074
1962
 
2075
1963
  | Option | Description |
2076
1964
  |---|---|
2077
1965
  | `--dir <value>` (required) | Bundle directory |
2078
1966
 
2079
- ### `offer versions`
2080
-
2081
- List an offer's versions (generations) — the id `applications start-test --version` takes
2082
-
2083
- - **Effect:** read — changes nothing on the deployment
2084
-
2085
- | Option | Description |
2086
- |---|---|
2087
- | `--offer <value>` | Offer slug (required) |
2088
-
2089
1967
  ### `offer workflow channels add`
2090
1968
 
2091
1969
  Add (or, with --key of an existing one, replace) an authored default chat channel; validate before write
2092
1970
 
1971
+ - **Right:** offline — no deployment
2093
1972
  - **Effect:** offline — edits local files only
2094
1973
 
2095
1974
  | Option | Description |
@@ -2104,6 +1983,7 @@ Add (or, with --key of an existing one, replace) an authored default chat channe
2104
1983
 
2105
1984
  Remove an authored default chat channel by key; validate before write
2106
1985
 
1986
+ - **Right:** offline — no deployment
2107
1987
  - **Effect:** offline — edits local files only
2108
1988
 
2109
1989
  | Option | Description |
@@ -2115,6 +1995,7 @@ Remove an authored default chat channel by key; validate before write
2115
1995
 
2116
1996
  List the workflow's chat channels — derived per team (read-only) and authored defaults
2117
1997
 
1998
+ - **Right:** offline — no deployment
2118
1999
  - **Effect:** read — changes nothing on the deployment
2119
2000
 
2120
2001
  | Option | Description |
@@ -2125,6 +2006,7 @@ List the workflow's chat channels — derived per team (read-only) and authored
2125
2006
 
2126
2007
  Insert a workflow node + sync progress layout/wiring; validate before write
2127
2008
 
2009
+ - **Right:** offline — no deployment
2128
2010
  - **Effect:** offline — edits local files only
2129
2011
 
2130
2012
  | Option | Description |
@@ -2186,6 +2068,7 @@ Insert a workflow node + sync progress layout/wiring; validate before write
2186
2068
 
2187
2069
  Add form fields to a node's reads (addresses already read are kept); validate before write
2188
2070
 
2071
+ - **Right:** offline — no deployment
2189
2072
  - **Effect:** offline — edits local files only
2190
2073
 
2191
2074
  | Option | Description |
@@ -2200,6 +2083,7 @@ Add form fields to a node's reads (addresses already read are kept); validate be
2200
2083
 
2201
2084
  Add form fields a completenessCheck waits for (addresses already required are kept); validate before write
2202
2085
 
2086
+ - **Right:** offline — no deployment
2203
2087
  - **Effect:** offline — edits local files only
2204
2088
 
2205
2089
  | Option | Description |
@@ -2214,6 +2098,7 @@ Add form fields a completenessCheck waits for (addresses already required are ke
2214
2098
 
2215
2099
  Remove a node's letter binding for one event; validate before write
2216
2100
 
2101
+ - **Right:** offline — no deployment
2217
2102
  - **Effect:** offline — edits local files only
2218
2103
 
2219
2104
  | Option | Description |
@@ -2226,6 +2111,7 @@ Remove a node's letter binding for one event; validate before write
2226
2111
 
2227
2112
  Remove a workflow node + its progress entries (refused while an address names it); validate before write
2228
2113
 
2114
+ - **Right:** offline — no deployment
2229
2115
  - **Effect:** offline — edits local files only
2230
2116
 
2231
2117
  | Option | Description |
@@ -2237,6 +2123,7 @@ Remove a workflow node + its progress entries (refused while an address names it
2237
2123
 
2238
2124
  List the workflow graph's nodes (id, type, label, outcomes, routing)
2239
2125
 
2126
+ - **Right:** offline — no deployment
2240
2127
  - **Effect:** read — changes nothing on the deployment
2241
2128
 
2242
2129
  | Option | Description |
@@ -2247,6 +2134,7 @@ List the workflow graph's nodes (id, type, label, outcomes, routing)
2247
2134
 
2248
2135
  Remove one optional action of a decision node (refused while requiresOneOf names it); validate before write
2249
2136
 
2137
+ - **Right:** offline — no deployment
2250
2138
  - **Effect:** offline — edits local files only
2251
2139
 
2252
2140
  | Option | Description |
@@ -2259,6 +2147,7 @@ Remove one optional action of a decision node (refused while requiresOneOf names
2259
2147
 
2260
2148
  Create or change one optional action (spawnTasks) of a decision node; validate before write
2261
2149
 
2150
+ - **Right:** offline — no deployment
2262
2151
  - **Effect:** offline — edits local files only
2263
2152
 
2264
2153
  | Option | Description |
@@ -2280,6 +2169,7 @@ Create or change one optional action (spawnTasks) of a decision node; validate b
2280
2169
 
2281
2170
  What arrives at a node: every address it reads, with origin and producer
2282
2171
 
2172
+ - **Right:** offline — no deployment
2283
2173
  - **Effect:** read — changes nothing on the deployment
2284
2174
 
2285
2175
  | Option | Description |
@@ -2291,6 +2181,7 @@ What arrives at a node: every address it reads, with origin and producer
2291
2181
 
2292
2182
  Remove form fields from a node's reads (an address it does not read fails); validate before write
2293
2183
 
2184
+ - **Right:** offline — no deployment
2294
2185
  - **Effect:** offline — edits local files only
2295
2186
 
2296
2187
  | Option | Description |
@@ -2305,6 +2196,7 @@ Remove form fields from a node's reads (an address it does not read fails); vali
2305
2196
 
2306
2197
  Remove form fields a completenessCheck waits for (an address it does not require fails; the last one cannot go); validate before write
2307
2198
 
2199
+ - **Right:** offline — no deployment
2308
2200
  - **Effect:** offline — edits local files only
2309
2201
 
2310
2202
  | Option | Description |
@@ -2319,6 +2211,7 @@ Remove form fields a completenessCheck waits for (an address it does not require
2319
2211
 
2320
2212
  Edit a workflow node (label/assign-decision/form/target/contract/payment/routing/approval/confirm-issue/confirm-terms/terms-question/response-due-days/deadline/guest-role/settlement/payee/article/traeger/condition/engage-target); validate before write
2321
2213
 
2214
+ - **Right:** offline — no deployment
2322
2215
  - **Effect:** offline — edits local files only
2323
2216
 
2324
2217
  | Option | Description |
@@ -2372,6 +2265,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
2372
2265
 
2373
2266
  Replace the fields a contract node leaves to the cockpit mask (generator or Word template); validate before write
2374
2267
 
2268
+ - **Right:** offline — no deployment
2375
2269
  - **Effect:** offline — edits local files only
2376
2270
 
2377
2271
  | Option | Description |
@@ -2384,6 +2278,7 @@ Replace the fields a contract node leaves to the cockpit mask (generator or Word
2384
2278
 
2385
2279
  Replace an engagePush node's Engage mapping from a JSON file; validate before write
2386
2280
 
2281
+ - **Right:** offline — no deployment
2387
2282
  - **Effect:** offline — edits local files only
2388
2283
 
2389
2284
  | Option | Description |
@@ -2396,6 +2291,7 @@ Replace an engagePush node's Engage mapping from a JSON file; validate before wr
2396
2291
 
2397
2292
  Pin a contract generator (--generator) or contract package (--package) by key at a generated contract — offline; validate before write
2398
2293
 
2294
+ - **Right:** offline — no deployment
2399
2295
  - **Effect:** offline — edits local files only
2400
2296
 
2401
2297
  | Option | Description |
@@ -2409,6 +2305,7 @@ Pin a contract generator (--generator) or contract package (--package) by key at
2409
2305
 
2410
2306
  Bind one input of a node to an address, set a literal, or clear it; validate before write
2411
2307
 
2308
+ - **Right:** offline — no deployment
2412
2309
  - **Effect:** offline — edits local files only
2413
2310
 
2414
2311
  | Option | Description |
@@ -2426,6 +2323,7 @@ Bind one input of a node to an address, set a literal, or clear it; validate bef
2426
2323
 
2427
2324
  Bind a letter to one of a node's declared events; validate before write
2428
2325
 
2326
+ - **Right:** offline — no deployment
2429
2327
  - **Effect:** offline — edits local files only
2430
2328
 
2431
2329
  | Option | Description |
@@ -2441,6 +2339,7 @@ Bind a letter to one of a node's declared events; validate before write
2441
2339
 
2442
2340
  Replace the form fields a node reads before acting (readiness gate); validate before write
2443
2341
 
2342
+ - **Right:** offline — no deployment
2444
2343
  - **Effect:** offline — edits local files only
2445
2344
 
2446
2345
  | Option | Description |
@@ -2456,6 +2355,7 @@ Replace the form fields a node reads before acting (readiness gate); validate be
2456
2355
 
2457
2356
  Replace the form fields a completenessCheck waits for; validate before write
2458
2357
 
2358
+ - **Right:** offline — no deployment
2459
2359
  - **Effect:** offline — edits local files only
2460
2360
 
2461
2361
  | Option | Description |
@@ -2470,6 +2370,7 @@ Replace the form fields a completenessCheck waits for; validate before write
2470
2370
 
2471
2371
  Add one composed task to a workflow node (result, blocks, condition, description); validate before write
2472
2372
 
2373
+ - **Right:** offline — no deployment
2473
2374
  - **Effect:** offline — edits local files only
2474
2375
 
2475
2376
  | Option | Description |
@@ -2521,141 +2422,477 @@ Add one composed task to a workflow node (result, blocks, condition, description
2521
2422
  | `--due-days-after-end <value>` | Terminaufgabe: days after the appointment's END until it is due (0–60; replaces --due-in-days) |
2522
2423
  | `--clear-appointment` | The task is no Terminaufgabe any more (removes appointment) |
2523
2424
 
2524
- ### `offer workflow node task delete`
2425
+ ### `offer workflow node task delete`
2426
+
2427
+ Remove one composed task (refused while another task blocks on it); validate before write
2428
+
2429
+ - **Right:** offline — no deployment
2430
+ - **Effect:** offline — edits local files only
2431
+
2432
+ | Option | Description |
2433
+ |---|---|
2434
+ | `--dir <value>` (required) | Bundle directory |
2435
+ | `--node <value>` (required) | Node id carrying the task |
2436
+ | `--key <value>` (required) | Task key (stable identity on that node) |
2437
+
2438
+ ### `offer workflow node task set`
2439
+
2440
+ Change the given fields of one composed task; validate before write
2441
+
2442
+ - **Right:** offline — no deployment
2443
+ - **Effect:** offline — edits local files only
2444
+
2445
+ | Option | Description |
2446
+ |---|---|
2447
+ | `--dir <value>` (required) | Bundle directory |
2448
+ | `--node <value>` (required) | Node id carrying the task |
2449
+ | `--key <value>` (required) | Task key (stable identity on that node) |
2450
+ | `--kind <value>` | task\|approval (add default: task) |
2451
+ | `--title <value>` | German title (without --title-en it stands in for English too) |
2452
+ | `--title-en <value>` | English title |
2453
+ | `--team <value>` | Permission-group key that holds the task (→ assign.group) |
2454
+ | `--due-in-days <value>` | SLA in days (→ params.dueInDays) |
2455
+ | `--blocks <value>` | Withheld target: <templateKey> (same node) or <nodeId>:<templateKey> (later node) |
2456
+ | `--clear-blocks` | Remove the blocks edge |
2457
+ | `--result <value>` | freetext\|recommendation\|choice\|record\|appointment |
2458
+ | `--option <value>` | choice only: key=Label or key=Label\|LabelEn (repeatable, replaces the list) |
2459
+ | `--field <value>` | record only: one field as JSON {key,type:number\|boolean\|enum,label:{de,en},writes,min?,options?,suggest?:{kind:'form',address:'$node.<form>.admission.<export>'}\|{kind:'siblingRank'},evidence?,evidenceFrom?} (repeatable, replaces the list) |
2460
+ | `--text-required` | recommendation/choice: text mandatory (--no-text-required: optional) |
2461
+ | `--chat <value>` | The chat the result is posted to (required for freetext\|recommendation\|choice): all \| team:<group> \| <authored channel key> |
2462
+ | `--duration <value>` | appointment only: default duration in minutes (prefills the Termin dialog) |
2463
+ | `--result-title <value>` | appointment only: neutral Termin title — family letter + calendar file (German; without --result-title-en it stands in for English too) |
2464
+ | `--result-title-en <value>` | appointment only: English Termin title |
2465
+ | `--clear-result` | Remove the result declaration |
2466
+ | `--when <value>` | Spawn condition: a boolean form export, by address — '$node.<formNode>.admission.<export>' |
2467
+ | `--on-condition-return <value>` | respawn\|stayClosed (required with --when) |
2468
+ | `--clear-when` | Remove --when and --on-condition-return |
2469
+ | `--reads <value>` | Evidence: form fields by address — '$node.<formNode>.admission.a,$node.<formNode>.admission.b' (replaces the list) |
2470
+ | `--clear-reads` | Remove the reads list |
2471
+ | `--documents <value>` | Documents the task points at, shown as links under it: artifact:<own slot>, field:'$node.<formNode>.admission.<docRef field>', document:'$node.<node>.document' (comma-separated; replaces the list) |
2472
+ | `--clear-documents` | Remove the documents list |
2473
+ | `--locks-evidence` | Once decided, lock the evidence (reads + the fields behind --when) against corrections until the team reopens the task |
2474
+ | `--clear-locks-evidence` | Remove locksEvidence |
2475
+ | `--description <value>` | Plain text under the title (German; without --description-en it stands in for English too) — never a checklist |
2476
+ | `--description-en <value>` | English description |
2477
+ | `--clear-description` | Remove the description |
2478
+ | `--family-request-fields <value>` | Nachforderung: the task asks the family when the optional action spawns it, offering these form fields at the click — addresses '$node.<formNode>.admission.a,…'; completes itself when the family sends — needs --due-in-days (excludes --family-request-from) |
2479
+ | `--family-request-from <value>` | Nachforderung: as --family-request-fields, offering every file field of this form instance — '$node.<formNode>.admission' |
2480
+ | `--clear-family-request` | Remove the family request |
2481
+ | `--writes <value>` | choice/pricedItem/reduction: the store value the result writes, by its full address — '$task.<this task key>.<key>' (required on pricedItem and reduction; a choice without it stays in the chat) |
2482
+ | `--prices <value>` | reduction only: the derived price it lowers — '$derived.<key>' |
2483
+ | `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
2484
+ | `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
2485
+ | `--result-label-en <value>` | English name of the result's value |
2486
+ | `--files` | freetext/recommendation/choice without --writes: the person may attach files to the result — text and files become one chat message (--no-files removes it) |
2487
+ | `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
2488
+ | `--optional-en <value>` | English words of the skip button |
2489
+ | `--clear-optional` | The task is owed again (removes optional) |
2490
+ | `--appointment-of <value>` | TERMINAUFGABE: the task of this node whose appointment this one is done at (its result is an appointment). The task then waits for the booking, is held by the appointment's host (chosen among --team) and is due --due-days-after-end days after the appointment ends |
2491
+ | `--due-days-after-end <value>` | Terminaufgabe: days after the appointment's END until it is due (0–60; replaces --due-in-days) |
2492
+ | `--clear-appointment` | The task is no Terminaufgabe any more (removes appointment) |
2493
+
2494
+ ### `offer workflow restamp-exports`
2495
+
2496
+ Re-stamp every form node's formExports from the form the bundle carries (publish's own derivation); validate before write
2497
+
2498
+ - **Right:** offline — no deployment
2499
+ - **Effect:** offline — edits local files only
2500
+
2501
+ | Option | Description |
2502
+ |---|---|
2503
+ | `--dir <value>` (required) | Bundle directory |
2504
+
2505
+ ### `offer workflow show`
2506
+
2507
+ Show the workflow graph (nodes + routing + progress states)
2508
+
2509
+ - **Right:** offline — no deployment
2510
+ - **Effect:** read — changes nothing on the deployment
2511
+
2512
+ | Option | Description |
2513
+ |---|---|
2514
+ | `--dir <value>` (required) | Bundle directory |
2515
+
2516
+ ### `offer workflow staff-input delete <key>`
2517
+
2518
+ Remove a staff input by key; validate before write
2519
+
2520
+ - **Right:** offline — no deployment
2521
+ - **Effect:** offline — edits local files only
2522
+
2523
+ | Option | Description |
2524
+ |---|---|
2525
+ | `--dir <value>` (required) | Bundle directory |
2526
+
2527
+ ### `offer workflow staff-input list`
2528
+
2529
+ List the workflow's staff inputs (values staff set at „+ Bewerbung“, read as $env.staffInput.<key>)
2530
+
2531
+ - **Right:** offline — no deployment
2532
+ - **Effect:** read — changes nothing on the deployment
2533
+
2534
+ | Option | Description |
2535
+ |---|---|
2536
+ | `--dir <value>` (required) | Bundle directory |
2537
+
2538
+ ### `offer workflow staff-input set <key>`
2539
+
2540
+ Declare a staff input (or relabel the one with this key); validate before write
2541
+
2542
+ - **Right:** offline — no deployment
2543
+ - **Effect:** offline — edits local files only
2544
+
2545
+ | Option | Description |
2546
+ |---|---|
2547
+ | `--dir <value>` (required) | Bundle directory |
2548
+ | `--label,--label-de <value>` | Checkbox label, German (required for a new input) |
2549
+ | `--label-en <value>` | Checkbox label, English (required for a new input) |
2550
+
2551
+ ## Offer (school token)
2552
+
2553
+ ### `offer apply`
2554
+
2555
+ Idempotent create/update; with --publish, release the draft when it differs from what is live
2556
+
2557
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2558
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2559
+
2560
+ | Option | Description |
2561
+ |---|---|
2562
+ | `--dir <value>` (required) | Bundle directory |
2563
+ | `--publish` | Release the draft when it says something the live generation does not |
2564
+ | `--stage <value>` | Publish stage: 'external' (default, goes live) or 'internal' (stage as the testable candidate only) |
2565
+
2566
+ ### `offer archive`
2567
+
2568
+ Archive (soft-delete) an offer — `offer restore` brings it back, never orphans data
2569
+
2570
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2571
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2572
+
2573
+ | Option | Description |
2574
+ |---|---|
2575
+ | `--offer <value>` | Offer slug (required) |
2576
+
2577
+ ### `offer capacity set`
2578
+
2579
+ Set seat capacity and/or open-state for one run × level cell
2580
+
2581
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2582
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2583
+
2584
+ | Option | Description |
2585
+ |---|---|
2586
+ | `--offer <value>` | Offer slug (required) |
2587
+ | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
2588
+ | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
2589
+ | `--capacity <value>` | Seat capacity (whole number) or "unlimited" |
2590
+ | `--open` | Open this cell |
2591
+ | `--close` | Close this cell |
2592
+
2593
+ ### `offer create`
2594
+
2595
+ Create a draft offer (manifest) — title (= program name) + optional unit
2596
+
2597
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2598
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2599
+
2600
+ | Option | Description |
2601
+ |---|---|
2602
+ | `--offer <value>` | New offer slug (identity key) (required) |
2603
+ | `--title <value>` (required) | Bare program name in German — no run/year or levels (those are separate; see `offer init --title`) |
2604
+ | `--title-en <value>` (required) | The same title in English (every name a reader sees has both) |
2605
+ | `--unit <value>` | Pedagogic unit (school) the offer belongs to — its config key |
2606
+
2607
+ ### `offer delete`
2608
+
2609
+ HARD-delete an offer (manifest + versions + workflow + smartform + program + stages + runs) — irreversible, plan unless --confirm; refused while any application exists. To take an offer down reversibly use `offer archive`.
2610
+
2611
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2612
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2613
+
2614
+ | Option | Description |
2615
+ |---|---|
2616
+ | `--offer <value>` | Offer slug (required) |
2617
+ | `--confirm` | Delete for good (without it, only the plan is printed). |
2618
+
2619
+ ### `offer diff`
2620
+
2621
+ Read-only remote↔local drift (no local validation)
2622
+
2623
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2624
+ - **Effect:** read — changes nothing on the deployment
2625
+
2626
+ | Option | Description |
2627
+ |---|---|
2628
+ | `--dir <value>` (required) | Bundle directory |
2629
+
2630
+ ### `offer export`
2631
+
2632
+ Pull an offer's published generation (manifest + smartforms + workflow + program) into a bundle; --draft pulls the draft
2633
+
2634
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2635
+ - **Effect:** read — changes nothing on the deployment
2636
+
2637
+ | Option | Description |
2638
+ |---|---|
2639
+ | `--offer <value>` | Manifest slug to export (required) |
2640
+ | `--out <value>` (required) | Output bundle directory (refused when not empty, unless --force) |
2641
+ | `--force` | Overwrite an existing --out file. |
2642
+ | `--draft` | Export the editable draft instead of the published generation (the live head, else the staged candidate) |
2643
+
2644
+ ### `offer level add`
2645
+
2646
+ Add a level (Klassenstufe) to an offer
2647
+
2648
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2649
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2650
+
2651
+ | Option | Description |
2652
+ |---|---|
2653
+ | `--offer <value>` | Offer slug (required) |
2654
+ | `--name <value>` (required) | Level name in German |
2655
+ | `--name-en <value>` (required) | Level name in English |
2656
+ | `--grade <value>` | Grade level (integer) |
2657
+ | `--key <value>` | Stable level key, as in bundle.yaml program.stages[].key (lowercase slug). Without it the key is derived from the German --name — and keeps that value after a rename |
2658
+
2659
+ ### `offer level archive`
2660
+
2661
+ Soft-delete (archive) a level — retired from the portal, restorable. Refused while an active application sits on the level
2662
+
2663
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2664
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2665
+
2666
+ | Option | Description |
2667
+ |---|---|
2668
+ | `--offer <value>` | Offer slug (required) |
2669
+ | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
2670
+
2671
+ ### `offer level move`
2672
+
2673
+ Reorder a level among the offer's levels (--before|--after another level)
2674
+
2675
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2676
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2677
+
2678
+ | Option | Description |
2679
+ |---|---|
2680
+ | `--offer <value>` | Offer slug (required) |
2681
+ | `--level <value>` (required) | Key of the level to move |
2682
+ | `--before <value>` | Place before the level with this key |
2683
+ | `--after <value>` | Place after the level with this key |
2684
+
2685
+ ### `offer level restore`
2686
+
2687
+ Restore an archived level
2688
+
2689
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2690
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2691
+
2692
+ | Option | Description |
2693
+ |---|---|
2694
+ | `--offer <value>` | Offer slug (required) |
2695
+ | `--level <value>` (required) | Level key (bundle.yaml program.stages[].key) |
2696
+
2697
+ ### `offer level set`
2698
+
2699
+ Change a level's name and/or grade
2700
+
2701
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2702
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2703
+
2704
+ | Option | Description |
2705
+ |---|---|
2706
+ | `--offer <value>` | Offer slug (required) |
2707
+ | `--level <value>` (required) | Key of the level to update (bundle.yaml program.stages[].key) |
2708
+ | `--name <value>` | New level name in German |
2709
+ | `--name-en <value>` | New level name in English |
2710
+ | `--grade <value>` | New grade level (integer) |
2711
+
2712
+ ### `offer list`
2713
+
2714
+ List offers (manifests) + publish state for a tenant
2715
+
2716
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2717
+ - **Effect:** read — changes nothing on the deployment
2718
+
2719
+ | Option | Description |
2720
+ |---|---|
2721
+ | `--all` | Include archived (soft-deleted) offers |
2722
+
2723
+ ### `offer plan`
2724
+
2725
+ Read-only: local validation (resolver pins stamped from the environment, as publish would) + remote↔local diff (create/change/same)
2726
+
2727
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2728
+ - **Effect:** read — changes nothing on the deployment
2729
+
2730
+ | Option | Description |
2731
+ |---|---|
2732
+ | `--dir <value>` (required) | Bundle directory |
2733
+
2734
+ ### `offer restore`
2735
+
2736
+ Restore an archived offer
2737
+
2738
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2739
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2740
+
2741
+ | Option | Description |
2742
+ |---|---|
2743
+ | `--offer <value>` | Offer slug (required) |
2744
+
2745
+ ### `offer run add`
2746
+
2747
+ Add a run (Schuljahr) to an offer
2748
+
2749
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2750
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2751
+
2752
+ | Option | Description |
2753
+ |---|---|
2754
+ | `--offer <value>` | Offer slug (required) |
2755
+ | `--name <value>` (required) | Run name in German (e.g. Schuljahr 2026/27) |
2756
+ | `--name-en <value>` (required) | Run name in English (e.g. School year 2026/27) |
2757
+ | `--key <value>` | Stable run key, as in bundle.yaml program.runs[].key (lowercase slug, e.g. 2026-27). Without it the key is derived from the German --name — and keeps that value after a rename |
2758
+ | `--start <value>` | Start date (ISO, e.g. 2026-08-01) |
2759
+ | `--end <value>` | End date (ISO) |
2760
+ | `--capacity <value>` | Default seat capacity per level |
2761
+ | `--closed` | Create closed (default: open) |
2762
+
2763
+ ### `offer run archive`
2525
2764
 
2526
- Remove one composed task (refused while another task blocks on it); validate before write
2765
+ Soft-delete (archive) a run — retired from the portal, restorable
2527
2766
 
2528
- - **Effect:** offline — edits local files only
2767
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2768
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2529
2769
 
2530
2770
  | Option | Description |
2531
2771
  |---|---|
2532
- | `--dir <value>` (required) | Bundle directory |
2533
- | `--node <value>` (required) | Node id carrying the task |
2534
- | `--key <value>` (required) | Task key (stable identity on that node) |
2772
+ | `--offer <value>` | Offer slug (required) |
2773
+ | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
2535
2774
 
2536
- ### `offer workflow node task set`
2775
+ ### `offer run restore`
2537
2776
 
2538
- Change the given fields of one composed task; validate before write
2777
+ Restore an archived run
2539
2778
 
2540
- - **Effect:** offline — edits local files only
2779
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2780
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2541
2781
 
2542
2782
  | Option | Description |
2543
2783
  |---|---|
2544
- | `--dir <value>` (required) | Bundle directory |
2545
- | `--node <value>` (required) | Node id carrying the task |
2546
- | `--key <value>` (required) | Task key (stable identity on that node) |
2547
- | `--kind <value>` | task\|approval (add default: task) |
2548
- | `--title <value>` | German title (without --title-en it stands in for English too) |
2549
- | `--title-en <value>` | English title |
2550
- | `--team <value>` | Permission-group key that holds the task (→ assign.group) |
2551
- | `--due-in-days <value>` | SLA in days (→ params.dueInDays) |
2552
- | `--blocks <value>` | Withheld target: <templateKey> (same node) or <nodeId>:<templateKey> (later node) |
2553
- | `--clear-blocks` | Remove the blocks edge |
2554
- | `--result <value>` | freetext\|recommendation\|choice\|record\|appointment |
2555
- | `--option <value>` | choice only: key=Label or key=Label\|LabelEn (repeatable, replaces the list) |
2556
- | `--field <value>` | record only: one field as JSON {key,type:number\|boolean\|enum,label:{de,en},writes,min?,options?,suggest?:{kind:'form',address:'$node.<form>.admission.<export>'}\|{kind:'siblingRank'},evidence?,evidenceFrom?} (repeatable, replaces the list) |
2557
- | `--text-required` | recommendation/choice: text mandatory (--no-text-required: optional) |
2558
- | `--chat <value>` | The chat the result is posted to (required for freetext\|recommendation\|choice): all \| team:<group> \| <authored channel key> |
2559
- | `--duration <value>` | appointment only: default duration in minutes (prefills the Termin dialog) |
2560
- | `--result-title <value>` | appointment only: neutral Termin title — family letter + calendar file (German; without --result-title-en it stands in for English too) |
2561
- | `--result-title-en <value>` | appointment only: English Termin title |
2562
- | `--clear-result` | Remove the result declaration |
2563
- | `--when <value>` | Spawn condition: a boolean form export, by address — '$node.<formNode>.admission.<export>' |
2564
- | `--on-condition-return <value>` | respawn\|stayClosed (required with --when) |
2565
- | `--clear-when` | Remove --when and --on-condition-return |
2566
- | `--reads <value>` | Evidence: form fields by address — '$node.<formNode>.admission.a,$node.<formNode>.admission.b' (replaces the list) |
2567
- | `--clear-reads` | Remove the reads list |
2568
- | `--documents <value>` | Documents the task points at, shown as links under it: artifact:<own slot>, field:'$node.<formNode>.admission.<docRef field>', document:'$node.<node>.document' (comma-separated; replaces the list) |
2569
- | `--clear-documents` | Remove the documents list |
2570
- | `--locks-evidence` | Once decided, lock the evidence (reads + the fields behind --when) against corrections until the team reopens the task |
2571
- | `--clear-locks-evidence` | Remove locksEvidence |
2572
- | `--description <value>` | Plain text under the title (German; without --description-en it stands in for English too) — never a checklist |
2573
- | `--description-en <value>` | English description |
2574
- | `--clear-description` | Remove the description |
2575
- | `--family-request-fields <value>` | Nachforderung: the task asks the family when the optional action spawns it, offering these form fields at the click — addresses '$node.<formNode>.admission.a,…'; completes itself when the family sends — needs --due-in-days (excludes --family-request-from) |
2576
- | `--family-request-from <value>` | Nachforderung: as --family-request-fields, offering every file field of this form instance — '$node.<formNode>.admission' |
2577
- | `--clear-family-request` | Remove the family request |
2578
- | `--writes <value>` | choice/pricedItem/reduction: the store value the result writes, by its full address — '$task.<this task key>.<key>' (required on pricedItem and reduction; a choice without it stays in the chat) |
2579
- | `--prices <value>` | reduction only: the derived price it lowers — '$derived.<key>' |
2580
- | `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
2581
- | `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
2582
- | `--result-label-en <value>` | English name of the result's value |
2583
- | `--files` | freetext/recommendation/choice without --writes: the person may attach files to the result — text and files become one chat message (--no-files removes it) |
2584
- | `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
2585
- | `--optional-en <value>` | English words of the skip button |
2586
- | `--clear-optional` | The task is owed again (removes optional) |
2587
- | `--appointment-of <value>` | TERMINAUFGABE: the task of this node whose appointment this one is done at (its result is an appointment). The task then waits for the booking, is held by the appointment's host (chosen among --team) and is due --due-days-after-end days after the appointment ends |
2588
- | `--due-days-after-end <value>` | Terminaufgabe: days after the appointment's END until it is due (0–60; replaces --due-in-days) |
2589
- | `--clear-appointment` | The task is no Terminaufgabe any more (removes appointment) |
2784
+ | `--offer <value>` | Offer slug (required) |
2785
+ | `--run <value>` (required) | Run key (bundle.yaml program.runs[].key) |
2590
2786
 
2591
- ### `offer workflow restamp-exports`
2787
+ ### `offer run set`
2592
2788
 
2593
- Re-stamp every form node's formExports from the form the bundle carries (publish's own derivation); validate before write
2789
+ Update a run: rename / dates
2594
2790
 
2595
- - **Effect:** offline — edits local files only
2791
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2792
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2596
2793
 
2597
2794
  | Option | Description |
2598
2795
  |---|---|
2599
- | `--dir <value>` (required) | Bundle directory |
2796
+ | `--offer <value>` | Offer slug (required) |
2797
+ | `--run <value>` (required) | Key of the run to update (bundle.yaml program.runs[].key) |
2798
+ | `--name <value>` | New run name in German |
2799
+ | `--name-en <value>` | New run name in English |
2800
+ | `--start <value>` | Start date (ISO) |
2801
+ | `--end <value>` | End date (ISO) |
2600
2802
 
2601
- ### `offer workflow restamp-pins`
2803
+ ### `offer set`
2602
2804
 
2603
- Stamp every contract generator/package pin and every Word-template node from the environment into the bundle, so the offline verbs know their fields
2805
+ Update an offer's title and/or pedagogic unit
2806
+
2807
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2808
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2809
+
2810
+ | Option | Description |
2811
+ |---|---|
2812
+ | `--offer <value>` | Offer slug (required) |
2813
+ | `--title <value>` | New bare offer title in German (offer_versions.label, the offer-title SoT) — no run/year or levels (those are separate entities) |
2814
+ | `--title-en <value>` | New offer title in English — required with --title: the English is never copied from the German, and a title without English is refused |
2815
+ | `--program-name <value>` | Rename the underlying master-data program in German (programs.name, staff master-data only — distinct from --title); needs --program-name-en |
2816
+ | `--program-name-en <value>` | The program's name in English (with --program-name) |
2817
+ | `--unit <value>` | New pedagogic unit (school) — its config key |
2818
+ | `--sort-order <value>` | Display order among the unit's offers (lower = first, non-negative number) |
2819
+
2820
+ ### `offer show`
2604
2821
 
2822
+ Full view of an offer: title, unit, levels, runs, capacity, state (incl. archived)
2823
+
2824
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2605
2825
  - **Effect:** read — changes nothing on the deployment
2606
2826
 
2607
2827
  | Option | Description |
2608
2828
  |---|---|
2609
- | `--dir <value>` (required) | Bundle directory |
2829
+ | `--offer <value>` | Offer slug (required) |
2610
2830
 
2611
- ### `offer workflow show`
2831
+ ### `offer status`
2612
2832
 
2613
- Show the workflow graph (nodes + routing + progress states)
2833
+ Publish state + whether program/pedagogy links resolve (applyable?)
2614
2834
 
2835
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2615
2836
  - **Effect:** read — changes nothing on the deployment
2616
2837
 
2617
2838
  | Option | Description |
2618
2839
  |---|---|
2619
- | `--dir <value>` (required) | Bundle directory |
2840
+ | `--offer <value>` | Offer slug (required) |
2620
2841
 
2621
- ### `offer workflow staff-input delete <key>`
2842
+ ### `offer unit create`
2622
2843
 
2623
- Remove a staff input by key; validate before write
2844
+ Create a pedagogic unit (school) — makes it applyable: creates the unit + its pedagogy bridge
2624
2845
 
2625
- - **Effect:** offline — edits local files only
2846
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2847
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2626
2848
 
2627
2849
  | Option | Description |
2628
2850
  |---|---|
2629
- | `--dir <value>` (required) | Bundle directory |
2851
+ | `--name <value>` (required) | Unit (school) name in German |
2852
+ | `--name-en <value>` (required) | Unit (school) name in English |
2853
+ | `--kind <value>` | Unit kind (default school): school\|kindergarten\|after_school_care\|department\|site\|other |
2854
+ | `--parent <value>` | Parent unit (nest under it) — its id, config key or URL slug |
2630
2855
 
2631
- ### `offer workflow staff-input list`
2856
+ ### `offer unit ensure-pedagogy`
2632
2857
 
2633
- List the workflow's staff inputs (values staff set at „+ Bewerbung“, read as $env.staffInput.<key>)
2858
+ Mark an EXISTING unit as a pedagogy unit (add its bridge) — idempotent
2859
+
2860
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2861
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
2862
+
2863
+ | Option | Description |
2864
+ |---|---|
2865
+ | `--unit <value>` (required) | Unit to upgrade — its id, config key or URL slug |
2866
+
2867
+ ### `offer versions`
2868
+
2869
+ List an offer's versions (generations) — the id `applications start-test --version` takes
2634
2870
 
2871
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2635
2872
  - **Effect:** read — changes nothing on the deployment
2636
2873
 
2637
2874
  | Option | Description |
2638
2875
  |---|---|
2639
- | `--dir <value>` (required) | Bundle directory |
2876
+ | `--offer <value>` | Offer slug (required) |
2640
2877
 
2641
- ### `offer workflow staff-input set <key>`
2878
+ ### `offer workflow restamp-pins`
2642
2879
 
2643
- Declare a staff input (or relabel the one with this key); validate before write
2880
+ Stamp every contract generator/package pin and every Word-template node from the environment into the bundle, so the offline verbs know their fields
2644
2881
 
2645
- - **Effect:** offline — edits local files only
2882
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2883
+ - **Effect:** read — changes nothing on the deployment
2646
2884
 
2647
2885
  | Option | Description |
2648
2886
  |---|---|
2649
2887
  | `--dir <value>` (required) | Bundle directory |
2650
- | `--label,--label-de <value>` | Checkbox label, German (required for a new input) |
2651
- | `--label-en <value>` | Checkbox label, English (required for a new input) |
2652
2888
 
2653
- ## Operations
2889
+ ## Operations (offline)
2654
2890
 
2655
2891
  ### `seed`
2656
2892
 
2657
2893
  Kick off the destructive local reseed and poll its run marker to completion.
2658
2894
 
2895
+ - **Right:** offline — no deployment
2659
2896
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2660
2897
  - **Terminal only:** runs on the operator's own machine, never in a hosted chat
2661
2898
 
@@ -2670,12 +2907,13 @@ Kick off the destructive local reseed and poll its run marker to completion.
2670
2907
  | `--timeout <value>` | Max seconds for waiting on a seed slot plus the seed itself, counted from when the functions are pushed (default 1200). |
2671
2908
  | `--push-timeout <value>` | Max seconds for the functions push of --if-needed, before the seed budget starts (default 600; a cold push under VM load took 319–393 s). |
2672
2909
 
2673
- ## Organisation
2910
+ ## Organisation (school token)
2674
2911
 
2675
2912
  ### `org delete-subtree <node>`
2676
2913
 
2677
2914
  Delete a legal entity or unit with everything below it — children first. Dry run unless --confirm.
2678
2915
 
2916
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2679
2917
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2680
2918
 
2681
2919
  | Option | Description |
@@ -2686,6 +2924,7 @@ Delete a legal entity or unit with everything below it — children first. Dry r
2686
2924
 
2687
2925
  Create a legal entity (Träger or school group), optionally under a parent legal entity.
2688
2926
 
2927
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2689
2928
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2690
2929
 
2691
2930
  | Option | Description |
@@ -2699,6 +2938,7 @@ Create a legal entity (Träger or school group), optionally under a parent legal
2699
2938
 
2700
2939
  Delete one legal entity (a Träger with its contract party) — plan unless --confirm. Refused while units, child legal entities, contract templates or contracts still name it — `org delete-subtree` removes a whole branch.
2701
2940
 
2941
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2702
2942
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2703
2943
 
2704
2944
  | Option | Description |
@@ -2709,6 +2949,7 @@ Delete one legal entity (a Träger with its contract party) — plan unless --co
2709
2949
 
2710
2950
  Rename, retype or move a legal entity. Unnamed fields keep their value.
2711
2951
 
2952
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2712
2953
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2713
2954
 
2714
2955
  | Option | Description |
@@ -2723,6 +2964,7 @@ Rename, retype or move a legal entity. Unnamed fields keep their value.
2723
2964
 
2724
2965
  Show the organisation tree: legal entities with their units, nested — or every unit as one row (--flat).
2725
2966
 
2967
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2726
2968
  - **Effect:** read — changes nothing on the deployment
2727
2969
 
2728
2970
  | Option | Description |
@@ -2733,6 +2975,7 @@ Show the organisation tree: legal entities with their units, nested — or every
2733
2975
 
2734
2976
  Create a unit under a legal entity or a parent unit. Not applyable by itself — `offer unit create` makes a pedagogic unit families apply to.
2735
2977
 
2978
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2736
2979
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2737
2980
 
2738
2981
  | Option | Description |
@@ -2747,6 +2990,7 @@ Create a unit under a legal entity or a parent unit. Not applyable by itself —
2747
2990
 
2748
2991
  Delete one unit with its pedagogy, profile and location rows — plan unless --confirm. Refused while it has programs (offers), sub-units or members.
2749
2992
 
2993
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2750
2994
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2751
2995
 
2752
2996
  | Option | Description |
@@ -2757,6 +3001,7 @@ Delete one unit with its pedagogy, profile and location rows — plan unless --c
2757
3001
 
2758
3002
  Rename, retype or move a unit within its legal entity. Unnamed fields keep their value.
2759
3003
 
3004
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2760
3005
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2761
3006
 
2762
3007
  | Option | Description |
@@ -2768,12 +3013,26 @@ Rename, retype or move a unit within its legal entity. Unnamed fields keep their
2768
3013
  | `--root` | Place directly under its legal entity |
2769
3014
  | `--key <value>` | New config key (kebab-case). Sets the key of a keyless node; a re-key is refused while a process version, contract template, Stripe account, import source or open generation run still names the old one |
2770
3015
 
2771
- ## Persons
3016
+ ## Persons (platform operator)
3017
+
3018
+ ### `platform persons purge <partyId>`
3019
+
3020
+ Hard-delete a person staff already deleted, with everything that belongs to it (plan unless --confirm). Needs _platform.config.manage.
3021
+
3022
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3023
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3024
+
3025
+ | Option | Description |
3026
+ |---|---|
3027
+ | `--confirm` | Delete for good (without it, only the plan is printed). |
3028
+
3029
+ ## Persons (school token)
2772
3030
 
2773
3031
  ### `persons list`
2774
3032
 
2775
3033
  Search persons in the active tenant
2776
3034
 
3035
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2777
3036
  - **Effect:** read — changes nothing on the deployment
2778
3037
 
2779
3038
  | Option | Description |
@@ -2783,22 +3042,13 @@ Search persons in the active tenant
2783
3042
  | `--all` | Fetch every page (ignores --limit) |
2784
3043
  | `--deleted` | List the persons staff deleted (the app's „Gelöschte“ view) instead |
2785
3044
 
2786
- ### `persons purge <partyId>`
2787
-
2788
- Hard-delete a person staff already deleted, with everything that belongs to it (plan unless --confirm). Needs _platform.config.manage.
2789
-
2790
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2791
-
2792
- | Option | Description |
2793
- |---|---|
2794
- | `--confirm` | Delete for good (without it, only the plan is printed). |
2795
-
2796
- ## Platform
3045
+ ## Platform (platform operator)
2797
3046
 
2798
3047
  ### `audit access`
2799
3048
 
2800
3049
  Read the privileged-access log (platform-admin)
2801
3050
 
3051
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2802
3052
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2803
3053
 
2804
3054
  | Option | Description |
@@ -2807,46 +3057,45 @@ Read the privileged-access log (platform-admin)
2807
3057
  | `--actor <value>` | Employee email to report accesses BY (tenant-scoped) |
2808
3058
  | `--with-actor` | Include the employee identity (needs _platform.audit.readActor) |
2809
3059
 
2810
- ### `platform users`
2811
-
2812
- List all platform users (platform-admin)
2813
-
2814
- - **Effect:** read — changes nothing on the deployment
2815
-
2816
- ### `platform workers`
3060
+ ### `platform workers list`
2817
3061
 
2818
3062
  List live job workers (platform-admin)
2819
3063
 
3064
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2820
3065
  - **Effect:** read — changes nothing on the deployment
2821
3066
 
2822
- ### `workers logs <workerId>`
3067
+ ### `platform workers logs <workerId>`
2823
3068
 
2824
3069
  Tail one worker's captured stdout/stderr.
2825
3070
 
3071
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2826
3072
  - **Effect:** read — changes nothing on the deployment
2827
3073
 
2828
3074
  | Option | Description |
2829
3075
  |---|---|
2830
3076
  | `--limit <value>` | Max lines (default 500, max 2000). |
2831
3077
 
2832
- ### `workers reap`
3078
+ ### `platform workers reap`
2833
3079
 
2834
3080
  Force a reaper pass NOW (free dead leases / fail stalled jobs).
2835
3081
 
3082
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2836
3083
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2837
3084
 
2838
- ### `workers reaper-status`
3085
+ ### `platform workers reaper-status`
2839
3086
 
2840
3087
  Show the last worker-reaper tick (confirm the cron is firing).
2841
3088
 
3089
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2842
3090
  - **Effect:** read — changes nothing on the deployment
2843
3091
 
2844
- ## Setup
3092
+ ## Setup (platform operator)
2845
3093
 
2846
3094
  ### `setup apply`
2847
3095
 
2848
3096
  Restore a setup export directory onto its tenant (platform-admin) / Einrichtung wiederherstellen
2849
3097
 
3098
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2850
3099
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2851
3100
 
2852
3101
  | Option | Description |
@@ -2861,12 +3110,14 @@ Restore a setup export directory onto its tenant (platform-admin) / Einrichtung
2861
3110
 
2862
3111
  Show what changed between two setup exports (platform-admin) / Zwei Einrichtungsexporte vergleichen
2863
3112
 
3113
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2864
3114
  - **Effect:** read — changes nothing on the deployment
2865
3115
 
2866
3116
  ### `setup export`
2867
3117
 
2868
3118
  Export a tenant's setup (Einrichtung) with its files (platform-admin) / Einrichtung exportieren
2869
3119
 
3120
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2870
3121
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2871
3122
 
2872
3123
  | Option | Description |
@@ -2879,6 +3130,7 @@ Export a tenant's setup (Einrichtung) with its files (platform-admin) / Einricht
2879
3130
 
2880
3131
  List a tenant's recorded setup exports (platform-admin) / Einrichtungsexporte auflisten
2881
3132
 
3133
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2882
3134
  - **Effect:** read — changes nothing on the deployment
2883
3135
 
2884
3136
  | Option | Description |
@@ -2889,6 +3141,7 @@ List a tenant's recorded setup exports (platform-admin) / Einrichtungsexporte au
2889
3141
 
2890
3142
  Preview restoring a setup export directory (platform-admin) / Wiederherstellung prüfen
2891
3143
 
3144
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2892
3145
  - **Effect:** read — changes nothing on the deployment
2893
3146
 
2894
3147
  | Option | Description |
@@ -2898,12 +3151,13 @@ Preview restoring a setup export directory (platform-admin) / Wiederherstellung
2898
3151
  | `--prune` | Preview an apply with --prune (a part that refuses it refuses here) |
2899
3152
  | `--platform` | The directory is the platform export (setup export --platform) |
2900
3153
 
2901
- ## Signing
3154
+ ## Signing (platform operator)
2902
3155
 
2903
- ### `signing connection activate`
3156
+ ### `platform signing connection activate`
2904
3157
 
2905
3158
  „Für Verträge verwenden“: make this provider the one the tenant's contracts go out through (any other connection is deactivated in the same step), or switch it off with --off. Open Vorgänge stay on the account they started on. Platform right `_platform.config.manage`.
2906
3159
 
3160
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2907
3161
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2908
3162
 
2909
3163
  | Option | Description |
@@ -2911,10 +3165,11 @@ Preview restoring a setup export directory (platform-admin) / Wiederherstellung
2911
3165
  | `--provider <value>` (required) | docusign \| insign |
2912
3166
  | `--off` | Deactivate instead. |
2913
3167
 
2914
- ### `signing connection delete`
3168
+ ### `platform signing connection delete`
2915
3169
 
2916
3170
  Delete the tenant's connection at ONE provider, secrets included. Refused while an open Vorgang talks through it. Dry-run unless --confirm. Platform right `_platform.config.manage`.
2917
3171
 
3172
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2918
3173
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
2919
3174
 
2920
3175
  | Option | Description |
@@ -2922,16 +3177,18 @@ Delete the tenant's connection at ONE provider, secrets included. Refused while
2922
3177
  | `--provider <value>` (required) | docusign \| insign |
2923
3178
  | `--confirm` | Actually delete (default: say what would go). |
2924
3179
 
2925
- ### `signing connection reseal`
3180
+ ### `platform signing connection reseal`
2926
3181
 
2927
3182
  After a key rotation: seal every school's connection secrets that are still under SIGNING_CREDENTIALS_KEY_PREVIOUS anew under SIGNING_CREDENTIALS_KEY — same secrets, same binding to tenant, provider and target. Idempotent. Platform-wide, platform right `_platform.config.manage`. Runbook: docs/signing/operations.md → „Rotating the key“.
2928
3183
 
3184
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2929
3185
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2930
3186
 
2931
- ### `signing connection set`
3187
+ ### `platform signing connection set`
2932
3188
 
2933
3189
  Set up or change the tenant's connection at ONE provider (platform right `_platform.config.manage`). Non-secret fields are written as given; the secret (DocuSign: Connect HMAC key, inSign: API password) comes ONLY from stdin or a file and is left unchanged when neither is given. A demo/sandbox account needs --redirect-to, a production account forbids it and is refused outside prod.
2934
3190
 
3191
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
2935
3192
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2936
3193
 
2937
3194
  | Option | Description |
@@ -2946,16 +3203,27 @@ Set up or change the tenant's connection at ONE provider (platform right `_platf
2946
3203
  | `--secret-file <value>` | Read the secret from this file. |
2947
3204
  | `--clear-secret <value>` | Remove the stored secret of this name (hmacKey \| password). |
2948
3205
 
3206
+ ### `platform signing status`
3207
+
3208
+ The installation's signing key slots: which key every school's secrets are sealed under (current / previous / unknown), and whether SIGNING_CREDENTIALS_KEY_PREVIOUS can be removed because nothing is sealed under it any more. Platform right `_platform.config.manage`.
3209
+
3210
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3211
+ - **Effect:** read — changes nothing on the deployment
3212
+
3213
+ ## Signing (school token)
3214
+
2949
3215
  ### `signing connection show`
2950
3216
 
2951
3217
  The tenant's e-signature connections: which provider its contracts go out through („E-Signatur: …“), and per provider the state, what keeps it from `ready`, the non-secret settings and which secrets are held (name + fingerprint, never the value). No network call.
2952
3218
 
3219
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2953
3220
  - **Effect:** read — changes nothing on the deployment
2954
3221
 
2955
3222
  ### `signing connection test`
2956
3223
 
2957
3224
  „Verbindung testen“: reach the school's account (DocuSign: JWT grant → token → userinfo; inSign: version + owner) and record the result on the connection. A DocuSign consent_required answer prints the URL the school's sender must open once. Exit 1 when the test fails.
2958
3225
 
3226
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2959
3227
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2960
3228
 
2961
3229
  | Option | Description |
@@ -2966,6 +3234,7 @@ The tenant's e-signature connections: which provider its contracts go out throug
2966
3234
 
2967
3235
  List Signaturvorgänge of a tenant (newest first), optionally for one contract or one status.
2968
3236
 
3237
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2969
3238
  - **Effect:** read — changes nothing on the deployment
2970
3239
 
2971
3240
  | Option | Description |
@@ -2977,12 +3246,14 @@ List Signaturvorgänge of a tenant (newest first), optionally for one contract o
2977
3246
 
2978
3247
  Re-read the process from its provider now and apply it (bypasses the 15-minute poll window on purpose — the local-dev return path without a webhook).
2979
3248
 
3249
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2980
3250
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2981
3251
 
2982
3252
  ### `signing resend <signingRequestId>`
2983
3253
 
2984
3254
  Re-notify one signer (by party id) of an open envelope.
2985
3255
 
3256
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2986
3257
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
2987
3258
 
2988
3259
  | Option | Description |
@@ -2993,28 +3264,25 @@ Re-notify one signer (by party id) of an open envelope.
2993
3264
 
2994
3265
  One Signaturvorgang with its signers, artefact URLs and received provider callbacks.
2995
3266
 
3267
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
2996
3268
  - **Effect:** read — changes nothing on the deployment
2997
3269
 
2998
3270
  ### `signing start`
2999
3271
 
3000
3272
  Start a Signaturvorgang on a frozen contract revision (contract_snapshots id) through the tenant's ACTIVE connection (`signing connection show`) — there is no provider to choose. Inserts the request and schedules the provider call; follow with `signing show`.
3001
3273
 
3274
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3002
3275
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3003
3276
 
3004
3277
  | Option | Description |
3005
3278
  |---|---|
3006
3279
  | `--snapshot <value>` (required) | contract_snapshots id of the revision to sign. |
3007
3280
 
3008
- ### `signing status`
3009
-
3010
- The installation's signing key slots: which key every school's secrets are sealed under (current / previous / unknown), and whether SIGNING_CREDENTIALS_KEY_PREVIOUS can be removed because nothing is sealed under it any more. Platform right `_platform.config.manage`.
3011
-
3012
- - **Effect:** read — changes nothing on the deployment
3013
-
3014
3281
  ### `signing void <signingRequestId>`
3015
3282
 
3016
3283
  Withdraw the process at the provider (schedules the void; the request ends `voided`) — irreversible, plan unless --confirm.
3017
3284
 
3285
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3018
3286
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3019
3287
 
3020
3288
  | Option | Description |
@@ -3022,12 +3290,13 @@ Withdraw the process at the provider (schedules the void; the request ends `void
3022
3290
  | `--reason <value>` (required) | Recorded on the request (and shown to the recipients where the provider supports it, e.g. DocuSign). |
3023
3291
  | `--confirm` | Void (without it, only the plan is printed). |
3024
3292
 
3025
- ## Stammdaten
3293
+ ## Stammdaten (platform operator)
3026
3294
 
3027
3295
  ### `retention parties apply`
3028
3296
 
3029
3297
  Hard-delete (with history and files) every person past the tenant's deletion rule that nothing blocks. Dry run unless --confirm; --confirm needs --expect <n>, the would-erase count `retention parties plan` showed.
3030
3298
 
3299
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3031
3300
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3032
3301
 
3033
3302
  | Option | Description |
@@ -3039,14 +3308,16 @@ Hard-delete (with history and files) every person past the tenant's deletion rul
3039
3308
 
3040
3309
  Read-only: the tenant's persons past its deletion rule, each with whether the hard delete may run (what `retention parties apply --confirm` would delete; blocked ones are skipped).
3041
3310
 
3311
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3042
3312
  - **Effect:** read — changes nothing on the deployment
3043
3313
 
3044
- ## Stripe
3314
+ ## Stripe (school token)
3045
3315
 
3046
3316
  ### `stripe allow`
3047
3317
 
3048
3318
  The school's own half of the decision: may Plexus collect in its name? Off until set, and never implied by Stripe having cleared the account.
3049
3319
 
3320
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3050
3321
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3051
3322
 
3052
3323
  | Option | Description |
@@ -3059,6 +3330,7 @@ The school's own half of the decision: may Plexus collect in its name? Off until
3059
3330
 
3060
3331
  Ask Stripe what one Träger's account may do, now. The mirror is normally refreshed by the v2.core.account* events; this is the way out of a stale NO, which is the expensive direction — the school cannot collect although it may. A failed read shows in `stripe status` (error).
3061
3332
 
3333
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3062
3334
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3063
3335
 
3064
3336
  | Option | Description |
@@ -3070,14 +3342,16 @@ Ask Stripe what one Träger's account may do, now. The mirror is normally refres
3070
3342
 
3071
3343
  What each Träger's Stripe connection can do — `status` is the one the staff page shows (needs_info, in_review, restricted, not_enabled, ready, …): whose account its money goes to, whether the school consented, Stripe's capability verdicts (card, SEPA, payouts) and what Stripe still wants from it.
3072
3344
 
3345
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3073
3346
  - **Effect:** read — changes nothing on the deployment
3074
3347
 
3075
- ## Tenant users
3348
+ ## Tenant users (school token)
3076
3349
 
3077
3350
  ### `tenant-users archive <email|userId>`
3078
3351
 
3079
3352
  Archive a user in this school (groups removed, hidden from lists and pickers) — plan unless --confirm.
3080
3353
 
3354
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3081
3355
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3082
3356
 
3083
3357
  | Option | Description |
@@ -3089,6 +3363,7 @@ Archive a user in this school (groups removed, hidden from lists and pickers)
3089
3363
 
3090
3364
  Deactivate a user in this school (reversible, groups kept but without effect, API tokens revoked) — plan unless --confirm.
3091
3365
 
3366
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3092
3367
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3093
3368
 
3094
3369
  | Option | Description |
@@ -3100,18 +3375,21 @@ Deactivate a user in this school (reversible, groups kept but without effect, AP
3100
3375
 
3101
3376
  List the school's staff groups — the options of `tenant-users list --group` and `tenant-users invite --group`.
3102
3377
 
3378
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3103
3379
  - **Effect:** read — changes nothing on the deployment
3104
3380
 
3105
3381
  ### `tenant-users history <email|userId>`
3106
3382
 
3107
3383
  The Verlauf of one user in the school: who changed what, newest first.
3108
3384
 
3385
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3109
3386
  - **Effect:** read — changes nothing on the deployment
3110
3387
 
3111
3388
  ### `tenant-users invite`
3112
3389
 
3113
3390
  Invite a new member of staff to this school: account, access and a one-time sign-in link by mail — plan unless --confirm.
3114
3391
 
3392
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3115
3393
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3116
3394
 
3117
3395
  | Option | Description |
@@ -3128,6 +3406,7 @@ Invite a new member of staff to this school: account, access and a one-time sign
3128
3406
 
3129
3407
  List the school's users (Administration → Nutzer); archived ones only with --status archived.
3130
3408
 
3409
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3131
3410
  - **Effect:** read — changes nothing on the deployment
3132
3411
 
3133
3412
  | Option | Description |
@@ -3140,12 +3419,14 @@ List the school's users (Administration → Nutzer); archived ones only with --s
3140
3419
 
3141
3420
  A user's personal mail categories in this school and what an internal letter of each does today.
3142
3421
 
3422
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3143
3423
  - **Effect:** read — changes nothing on the deployment
3144
3424
 
3145
3425
  ### `tenant-users notifications set <email|userId>`
3146
3426
 
3147
3427
  Switch a user's personal mail categories in this school (the person is told by mail; the latest change, theirs or yours, holds).
3148
3428
 
3429
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3149
3430
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3150
3431
 
3151
3432
  | Option | Description |
@@ -3156,54 +3437,51 @@ Switch a user's personal mail categories in this school (the person is told by m
3156
3437
 
3157
3438
  Reactivate a deactivated or archived user in this school (an archived one starts without groups).
3158
3439
 
3440
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3159
3441
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3160
3442
 
3161
3443
  ### `tenant-users send-login-link <email|userId>`
3162
3444
 
3163
3445
  Mail a user of this school a fresh one-time sign-in link (active users only) — e.g. an invitation that expired.
3164
3446
 
3447
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3165
3448
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3166
3449
 
3167
3450
  ### `tenant-users send-password-reset <email|userId>`
3168
3451
 
3169
3452
  Mail a user of this school a password-reset link (active users only); only the person sets the new password.
3170
3453
 
3454
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3171
3455
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3172
3456
 
3173
3457
  ### `tenant-users show <email|userId>`
3174
3458
 
3175
3459
  Show one user of the school: status, groups, last sign-in, whether a signature is stored.
3176
3460
 
3461
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3177
3462
  - **Effect:** read — changes nothing on the deployment
3178
3463
 
3179
3464
  ### `tenant-users signature request <email|userId>`
3180
3465
 
3181
3466
  Ask a user by mail to store their own signature — only while none is stored, at most once a day.
3182
3467
 
3468
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3183
3469
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3184
3470
 
3185
3471
  ### `tenant-users units list`
3186
3472
 
3187
3473
  List the school's units by key — the options of `tenant-users invite --unit`.
3188
3474
 
3475
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3189
3476
  - **Effect:** read — changes nothing on the deployment
3190
3477
 
3191
- ## Users
3192
-
3193
- ### `accounts email-changes`
3194
-
3195
- Read the login-address change log (who changed whose login address)
3196
-
3197
- - **Effect:** read — changes nothing on the deployment
3198
-
3199
- | Option | Description |
3200
- |---|---|
3201
- | `--user <value>` | An address the account holds or held (data-subject request) |
3478
+ ## Users (platform operator)
3202
3479
 
3203
- ### `users archive <email>`
3480
+ ### `platform users archive <email>`
3204
3481
 
3205
3482
  Archive a user everywhere: archive every school access (groups removed, one history entry per school; a school's last user administrator is refused), end every platform right; the identity and its history stay — plan unless --confirm.
3206
3483
 
3484
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3207
3485
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3208
3486
 
3209
3487
  | Option | Description |
@@ -3211,10 +3489,11 @@ Archive a user everywhere: archive every school access (groups removed, one hist
3211
3489
  | `--replace-with <value>` | configKey of the staff member who takes over their active applications — required while they are responsible for any. A rule naming them refuses regardless: change it first (workflow editor: „Person ersetzen“, then publish) |
3212
3490
  | `--confirm` | Archive (without it, only the plan is printed). |
3213
3491
 
3214
- ### `users create <email>`
3492
+ ### `platform users create <email>`
3215
3493
 
3216
- Create a tenant-less identity WITH a login account from just an e-mail (optionally a platform admin). Idempotent: an existing user is left untouched — no password is rotated. To (re)set a ready-to-log-in account with a name, group or permission set, use `users provision`.
3494
+ Create a tenant-less identity WITH a login account from just an e-mail (optionally a platform admin). Idempotent: an existing user is left untouched — no password is rotated. To (re)set a ready-to-log-in account with a name, group or permission set, use `platform users provision`.
3217
3495
 
3496
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3218
3497
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3219
3498
 
3220
3499
  | Option | Description |
@@ -3223,26 +3502,29 @@ Create a tenant-less identity WITH a login account from just an e-mail (optional
3223
3502
  | `--quiet` | Do not echo the password to stdout (needs --out). |
3224
3503
  | `--platform-admin` | Make the new user a platform admin (full _platform.* set). |
3225
3504
 
3226
- ### `users doctor`
3505
+ ### `platform users doctor`
3227
3506
 
3228
3507
  List identities that cannot log in, with the repair each one needs. Exits non-zero when any are found.
3229
3508
 
3509
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3230
3510
  - **Effect:** read — changes nothing on the deployment
3231
3511
 
3232
- ### `users grant <email>`
3512
+ ### `platform users grant <email>`
3233
3513
 
3234
- Grant a user access to the active tenant in a permission group (creates the identity if absent, but no login account — `users provision` makes one that can sign in). `users revoke` takes it back.
3514
+ Grant a user access to the active tenant in a permission group (creates the identity if absent, but no login account — `platform users provision` makes one that can sign in). `platform users revoke` takes it back.
3235
3515
 
3516
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3236
3517
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3237
3518
 
3238
3519
  | Option | Description |
3239
3520
  |---|---|
3240
3521
  | `--group <value>` | Permission group key (default: tenant_admin). |
3241
3522
 
3242
- ### `users grant-all`
3523
+ ### `platform users grant-all`
3243
3524
 
3244
3525
  Grant every current user of one tenant access to another (e.g. let all tenants dogfood the Test Tenant) — bulk, plan unless --confirm. One-time + idempotent; new users are not auto-enrolled.
3245
3526
 
3527
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3246
3528
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3247
3529
 
3248
3530
  | Option | Description |
@@ -3252,42 +3534,29 @@ Grant every current user of one tenant access to another (e.g. let all tenants d
3252
3534
  | `--group <value>` | Permission group key in the target (default: tenant_admin). |
3253
3535
  | `--confirm` | Grant (without it, only the plan is printed). |
3254
3536
 
3255
- ### `users groups`
3256
-
3257
- List a tenant's permission groups.
3258
-
3259
- - **Effect:** read — changes nothing on the deployment
3260
-
3261
- ### `users groups delete <key>`
3262
-
3263
- Delete a tenant permission group (hard; refuses while in use).
3264
-
3265
- - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3266
-
3267
- | Option | Description |
3268
- |---|---|
3269
- | `--confirm` | Required: actually delete (else dry-run) |
3270
-
3271
- ### `users list`
3537
+ ### `platform users list`
3272
3538
 
3273
3539
  List all platform users.
3274
3540
 
3541
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3275
3542
  - **Effect:** read — changes nothing on the deployment
3276
3543
 
3277
- ### `users login-trail <email>`
3544
+ ### `platform users login-trail <email>`
3278
3545
 
3279
3546
  Everything the platform still knows about one address's sign-in: login-page refusals, letters with the relay's answer, sessions (when, network, browser), when a password was set (platform-admin).
3280
3547
 
3548
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3281
3549
  - **Effect:** read — changes nothing on the deployment
3282
3550
 
3283
3551
  | Option | Description |
3284
3552
  |---|---|
3285
3553
  | `--since <value>` | From: 90m, 24h, 2d or an ISO date/time (default 7d). |
3286
3554
 
3287
- ### `users provision <email>`
3555
+ ### `platform users provision <email>`
3288
3556
 
3289
3557
  Create — or reset — a ready-to-log-in account with a password (generated, or from --password-stdin / --password-file) and emit the email→password mapping. One of three kinds: a tenant user in a permission group of the active tenant (default), a tenant-less platform admin (--platform-admin), or a tenant-less platform user with an exact _platform.* subset (--permission, repeatable). Re-running rotates the password.
3290
3558
 
3559
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3291
3560
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3292
3561
 
3293
3562
  | Option | Description |
@@ -3301,16 +3570,18 @@ Create — or reset — a ready-to-log-in account with a password (generated, or
3301
3570
  | `--platform-admin` | A tenant-less platform admin holding the full _platform.* set. |
3302
3571
  | `--permission <value>` | A tenant-less platform user with exactly this _platform.* permission (repeatable). |
3303
3572
 
3304
- ### `users relink-auth <email>`
3573
+ ### `platform users relink-auth <email>`
3305
3574
 
3306
3575
  Relink a user's identity row to its live Better Auth account (heals an orphan).
3307
3576
 
3577
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3308
3578
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3309
3579
 
3310
- ### `users revoke <email>`
3580
+ ### `platform users revoke <email>`
3311
3581
 
3312
- Revoke a user's access to the active tenant (--tenant) — plan unless --confirm. Other tenants keep it; `users archive` archives everywhere.
3582
+ Revoke a user's access to the active tenant (--tenant) — plan unless --confirm. Other tenants keep it; `platform users archive` archives everywhere.
3313
3583
 
3584
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3314
3585
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3315
3586
 
3316
3587
  | Option | Description |
@@ -3318,10 +3589,11 @@ Revoke a user's access to the active tenant (--tenant) — plan unless --confirm
3318
3589
  | `--replace-with <value>` | configKey of the staff member who takes over their active applications — required while they are responsible for any. A rule naming them refuses regardless: change it first (workflow editor: „Person ersetzen“, then publish) |
3319
3590
  | `--confirm` | Revoke (without it, only the plan is printed). |
3320
3591
 
3321
- ### `users set-email <email>`
3592
+ ### `platform users set-email <email>`
3322
3593
 
3323
3594
  Change an existing user's login e-mail across all their tenants (plan unless --confirm). Fails loud when the new address is taken.
3324
3595
 
3596
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3325
3597
  - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3326
3598
 
3327
3599
  | Option | Description |
@@ -3329,20 +3601,11 @@ Change an existing user's login e-mail across all their tenants (plan unless --c
3329
3601
  | `--to <value>` (required) | The new login e-mail address. |
3330
3602
  | `--confirm` | Write the change (without it, only the plan is printed). |
3331
3603
 
3332
- ### `users set-group <email>`
3333
-
3334
- Add a user to a permission group in a tenant.
3335
-
3336
- - **Effect:** write — needs `--env`; on production also `--allow-prod`
3337
-
3338
- | Option | Description |
3339
- |---|---|
3340
- | `--group <value>` (required) | Permission group key. |
3341
-
3342
- ### `users set-password <email>`
3604
+ ### `platform users set-password <email>`
3343
3605
 
3344
- Set (rotate) an existing user's login password — tenant user or platform admin. Generated by the server unless --password-stdin / --password-file gives one. Emits the email→password mapping. Creates nothing; fails loud on an unknown or orphaned identity (run `users relink-auth` first).
3606
+ Set (rotate) an existing user's login password — tenant user or platform admin. Generated by the server unless --password-stdin / --password-file gives one. Emits the email→password mapping. Creates nothing; fails loud on an unknown or orphaned identity (run `platform users relink-auth` first).
3345
3607
 
3608
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3346
3609
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3347
3610
 
3348
3611
  | Option | Description |
@@ -3352,10 +3615,11 @@ Set (rotate) an existing user's login password — tenant user or platform admin
3352
3615
  | `--password-stdin` | Read the password from stdin instead of letting the server generate one. |
3353
3616
  | `--password-file <value>` | Read the password from this file instead of letting the server generate one. |
3354
3617
 
3355
- ### `users set-platform-admin <email>`
3618
+ ### `platform users set-platform-admin <email>`
3356
3619
 
3357
3620
  Grant/revoke platform-admin status (--on | --off).
3358
3621
 
3622
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3359
3623
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3360
3624
 
3361
3625
  | Option | Description |
@@ -3363,10 +3627,11 @@ Grant/revoke platform-admin status (--on | --off).
3363
3627
  | `--on` | Grant. |
3364
3628
  | `--off` | Revoke. |
3365
3629
 
3366
- ### `users set-platform-permission <email>`
3630
+ ### `platform users set-platform-permission <email>`
3367
3631
 
3368
3632
  Grant/revoke a single _platform.* permission (--on | --off).
3369
3633
 
3634
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3370
3635
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3371
3636
 
3372
3637
  | Option | Description |
@@ -3375,16 +3640,60 @@ Grant/revoke a single _platform.* permission (--on | --off).
3375
3640
  | `--on` | Grant. |
3376
3641
  | `--off` | Revoke. |
3377
3642
 
3378
- ### `users show <email>`
3643
+ ### `platform users show <email>`
3379
3644
 
3380
3645
  Show one user's tenants, groups + platform status.
3381
3646
 
3647
+ - **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
3648
+ - **Effect:** read — changes nothing on the deployment
3649
+
3650
+ ## Users (school token)
3651
+
3652
+ ### `accounts email-changes`
3653
+
3654
+ Read the login-address change log (who changed whose login address)
3655
+
3656
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3657
+ - **Effect:** read — changes nothing on the deployment
3658
+
3659
+ | Option | Description |
3660
+ |---|---|
3661
+ | `--user <value>` | An address the account holds or held (data-subject request) |
3662
+
3663
+ ### `users groups`
3664
+
3665
+ List a tenant's permission groups.
3666
+
3667
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3382
3668
  - **Effect:** read — changes nothing on the deployment
3383
3669
 
3670
+ ### `users groups delete <key>`
3671
+
3672
+ Delete a tenant permission group (hard; refuses while in use).
3673
+
3674
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3675
+ - **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
3676
+
3677
+ | Option | Description |
3678
+ |---|---|
3679
+ | `--confirm` | Required: actually delete (else dry-run) |
3680
+
3681
+ ### `users set-group <email>`
3682
+
3683
+ Add a user to a permission group in a tenant.
3684
+
3685
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3686
+ - **Effect:** write — needs `--env`; on production also `--allow-prod`
3687
+
3688
+ | Option | Description |
3689
+ |---|---|
3690
+ | `--group <value>` (required) | Permission group key. |
3691
+
3384
3692
  ### `users unset-group <email>`
3385
3693
 
3386
3694
  Remove a user from a permission group in a tenant.
3387
3695
 
3696
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3388
3697
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3389
3698
 
3390
3699
  | Option | Description |
@@ -3392,12 +3701,13 @@ Remove a user from a permission group in a tenant.
3392
3701
  | `--group <value>` (required) | Permission group key. |
3393
3702
  | `--replace-with <value>` | configKey of the staff member who takes over their active applications — required while they are responsible for any. A rule naming them refuses regardless: change it first (workflow editor: „Person ersetzen“, then publish) |
3394
3703
 
3395
- ## Work-Items
3704
+ ## Work-Items (school token)
3396
3705
 
3397
3706
  ### `work-items assign <workItemId>`
3398
3707
 
3399
3708
  Assign a work-item to a user (omit --user to unassign).
3400
3709
 
3710
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3401
3711
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3402
3712
 
3403
3713
  | Option | Description |
@@ -3408,6 +3718,7 @@ Assign a work-item to a user (omit --user to unassign).
3408
3718
 
3409
3719
  Complete a work-item (optionally with an outcome).
3410
3720
 
3721
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3411
3722
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3412
3723
 
3413
3724
  | Option | Description |
@@ -3418,6 +3729,7 @@ Complete a work-item (optionally with an outcome).
3418
3729
 
3419
3730
  Create a manual task work-item.
3420
3731
 
3732
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3421
3733
  - **Effect:** write — needs `--env`; on production also `--allow-prod`
3422
3734
 
3423
3735
  | Option | Description |
@@ -3432,6 +3744,7 @@ Create a manual task work-item.
3432
3744
 
3433
3745
  List work-items for the active tenant (filter by --mine/--application/--group).
3434
3746
 
3747
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3435
3748
  - **Effect:** read — changes nothing on the deployment
3436
3749
 
3437
3750
  | Option | Description |
@@ -3446,4 +3759,5 @@ List work-items for the active tenant (filter by --mine/--application/--group).
3446
3759
 
3447
3760
  Show one work-item by id.
3448
3761
 
3762
+ - **Right:** school token — a module permission inside one school (the school's own administrator runs it)
3449
3763
  - **Effect:** read — changes nothing on the deployment