@smartkomm/plexus-cli 0.1.34 → 0.1.35
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.
- package/README.md +3 -5
- package/dist/cli.mjs +40 -40
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +3 -5
- package/dist/skill/references/commands.md +25 -28
- package/dist/skill/references/config/attach-a-template.md +7 -2
- package/dist/skill/references/config/set-tenant-branding.md +6 -5
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
aafde774e99c32c2e37100c99081e6ec2eeccbacf544b5f9c13ad882e960b799
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -116,9 +116,7 @@ These need the **platform operator** (a `_platform.*` right). Ask them; do not
|
|
|
116
116
|
try: everything under `platform …` (accounts across tenants, workers, the mail
|
|
117
117
|
delivery monitor, cross-tenant imports, the hard delete of a person, signing
|
|
118
118
|
connection set-up and key slots, the contract input-key registry), the
|
|
119
|
-
`feedback`, `demo`, `setup`, `retention`, `jobs
|
|
120
|
-
commands, `files put|delete` (a school sets its branding and library files
|
|
121
|
-
through `config apply` or in the app), creating, onboarding or wiping a tenant
|
|
119
|
+
`feedback`, `demo`, `setup`, `retention`, `jobs` and `audit` commands, creating, onboarding or wiping a tenant
|
|
122
120
|
(`config wipe`, `config prune-offers`, `config apply --scope platform`),
|
|
123
121
|
`offer delete` (the hard delete), the settings listed above and issuing a token
|
|
124
122
|
for someone else (`tokens create --for`). Every command's right is in
|
|
@@ -168,7 +166,7 @@ whole is the operator's (ask them; do not try).
|
|
|
168
166
|
| [applications/correct-staff-input.md](references/applications/correct-staff-input.md) | Mandant | Correct an internal input staff set at the start, while no step has read it. |
|
|
169
167
|
| [audit/answer-access-request.md](references/audit/answer-access-request.md) | Plattform | Answer an Art. 15 request: who looked at this application? |
|
|
170
168
|
| [config/add-legal-entity.md](references/config/add-legal-entity.md) | Mandant | Add a Träger with its address or a unit to an exported config offline, then apply it. |
|
|
171
|
-
| [config/attach-a-template.md](references/config/attach-a-template.md) | Mandant
|
|
169
|
+
| [config/attach-a-template.md](references/config/attach-a-template.md) | Mandant | Put a template into the file library and attach it to a form field (`files put` / `files delete` need `administration.config.manage`). |
|
|
172
170
|
| [config/export-tenant-setup.md](references/config/export-tenant-setup.md) | Plattform | Take a portable copy of a tenant's setup (config plus referenced files) into a new directory outside any repository. |
|
|
173
171
|
| [config/init-tenant.md](references/config/init-tenant.md) | Plattform | Generate and apply a minimal valid tenant config without an existing source. |
|
|
174
172
|
| [config/onboard-tenant.md](references/config/onboard-tenant.md) | Plattform | Set up or refresh a real tenant's config from a snapshot or another environment. |
|
|
@@ -176,7 +174,7 @@ whole is the operator's (ask them; do not try).
|
|
|
176
174
|
| [config/platform-setup-export.md](references/config/platform-setup-export.md) | Plattform | Export the platform's own setup (the contract input registry) and restore it before a tenant whose setup names its keys. |
|
|
177
175
|
| [config/restore-tenant-setup.md](references/config/restore-tenant-setup.md) | Plattform | Preview and apply a setup export directory onto its tenant, part by part. |
|
|
178
176
|
| [config/list-setup-exports.md](references/config/list-setup-exports.md) | Plattform | List a tenant's nightly and manual setup exports and show what changed between two of them. |
|
|
179
|
-
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant
|
|
177
|
+
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant | Give the application portal colours, radius and fonts; upload logo and WOFF2 fonts (`branding …` needs `administration.config.manage`). |
|
|
180
178
|
| [config/set-tenant-terms.md](references/config/set-tenant-terms.md) | Plattform | Switch a school from „Bewerbung" to „Anmeldung" throughout with one setting. |
|
|
181
179
|
| [config/set-external-sign-in.md](references/config/set-external-sign-in.md) | Plattform | Choose how long the sign-in link in a school's letters works — once, N days, or without end. |
|
|
182
180
|
| [config/set-up-billing-catalog.md](references/config/set-up-billing-catalog.md) | Mandant + Plattform | Load articles, packages, reduction tiers and Word templates by stable keys (catalog plan/apply). |
|
|
@@ -8,14 +8,13 @@ Generated from the commands the CLI registers — do not edit; `plexus-cli <comm
|
|
|
8
8
|
- [Admission (platform operator)](#admission-platform-operator) (2)
|
|
9
9
|
- [Admission (school token)](#admission-school-token) (12)
|
|
10
10
|
- [Agents (offline)](#agents-offline) (2)
|
|
11
|
-
- [Branding (
|
|
11
|
+
- [Branding (school token)](#branding-school-token) (6)
|
|
12
12
|
- [Config (offline)](#config-offline) (4)
|
|
13
13
|
- [Config (school token)](#config-school-token) (6)
|
|
14
14
|
- [Contracts (platform operator)](#contracts-platform-operator) (5)
|
|
15
15
|
- [Contracts (school token)](#contracts-school-token) (19)
|
|
16
16
|
- [Feedback (platform operator)](#feedback-platform-operator) (21)
|
|
17
|
-
- [Files (
|
|
18
|
-
- [Files (school token)](#files-school-token) (1)
|
|
17
|
+
- [Files (school token)](#files-school-token) (3)
|
|
19
18
|
- [Identity (own account)](#identity-own-account) (5)
|
|
20
19
|
- [Imports (platform operator)](#imports-platform-operator) (2)
|
|
21
20
|
- [Imports (school token)](#imports-school-token) (2)
|
|
@@ -227,13 +226,13 @@ Show the shared platform/CLI agent tool schemas and skill revision.
|
|
|
227
226
|
- **Right:** offline — no deployment
|
|
228
227
|
- **Effect:** read — changes nothing on the deployment
|
|
229
228
|
|
|
230
|
-
## Branding (
|
|
229
|
+
## Branding (school token)
|
|
231
230
|
|
|
232
231
|
### `branding clear-font`
|
|
233
232
|
|
|
234
|
-
Remove a tenant's portal font file for a slot (
|
|
233
|
+
Remove a tenant's portal font file for a slot (the family stays)
|
|
235
234
|
|
|
236
|
-
- **Right:**
|
|
235
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
237
236
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
238
237
|
|
|
239
238
|
| Option | Description |
|
|
@@ -242,16 +241,16 @@ Remove a tenant's portal font file for a slot (platform-admin; the family stays)
|
|
|
242
241
|
|
|
243
242
|
### `branding clear-logo`
|
|
244
243
|
|
|
245
|
-
Remove a tenant's portal logo
|
|
244
|
+
Remove a tenant's portal logo
|
|
246
245
|
|
|
247
|
-
- **Right:**
|
|
246
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
248
247
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
249
248
|
|
|
250
249
|
### `branding set-font`
|
|
251
250
|
|
|
252
|
-
Upload a tenant's portal font file (WOFF2) for a slot
|
|
251
|
+
Upload a tenant's portal font file (WOFF2) for a slot
|
|
253
252
|
|
|
254
|
-
- **Right:**
|
|
253
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
255
254
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
256
255
|
|
|
257
256
|
| Option | Description |
|
|
@@ -261,9 +260,9 @@ Upload a tenant's portal font file (WOFF2) for a slot (platform-admin)
|
|
|
261
260
|
|
|
262
261
|
### `branding set-logo`
|
|
263
262
|
|
|
264
|
-
Upload a tenant's portal logo
|
|
263
|
+
Upload a tenant's portal logo
|
|
265
264
|
|
|
266
|
-
- **Right:**
|
|
265
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
267
266
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
268
267
|
|
|
269
268
|
| Option | Description |
|
|
@@ -273,9 +272,9 @@ Upload a tenant's portal logo (platform-admin)
|
|
|
273
272
|
|
|
274
273
|
### `branding set-theme`
|
|
275
274
|
|
|
276
|
-
Set a tenant's portal theme tokens from a JSON file
|
|
275
|
+
Set a tenant's portal theme tokens from a JSON file
|
|
277
276
|
|
|
278
|
-
- **Right:**
|
|
277
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
279
278
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
280
279
|
|
|
281
280
|
| Option | Description |
|
|
@@ -284,9 +283,9 @@ Set a tenant's portal theme tokens from a JSON file (platform-admin)
|
|
|
284
283
|
|
|
285
284
|
### `branding show`
|
|
286
285
|
|
|
287
|
-
Show a tenant's current branding + resolved logo and font-file URLs
|
|
286
|
+
Show a tenant's current branding + resolved logo and font-file URLs
|
|
288
287
|
|
|
289
|
-
- **Right:**
|
|
288
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
290
289
|
- **Effect:** read — changes nothing on the deployment
|
|
291
290
|
|
|
292
291
|
## Config (offline)
|
|
@@ -927,24 +926,31 @@ Detach a tag from a feedback item (uses the active --tenant).
|
|
|
927
926
|
- **Right:** platform operator — needs a `_platform.*` right; a school's token is refused
|
|
928
927
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
929
928
|
|
|
930
|
-
## Files (
|
|
929
|
+
## Files (school token)
|
|
931
930
|
|
|
932
931
|
### `files delete <key>`
|
|
933
932
|
|
|
934
933
|
Delete a library file — plan unless --confirm; refused while a form uses it / Datei löschen
|
|
935
934
|
|
|
936
|
-
- **Right:**
|
|
935
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
937
936
|
- **Effect:** plan by default — writes only with `--confirm` (and `--env`; on production also `--allow-prod`)
|
|
938
937
|
|
|
939
938
|
| Option | Description |
|
|
940
939
|
|---|---|
|
|
941
940
|
| `--confirm` | Delete (without it, only the plan is printed). |
|
|
942
941
|
|
|
942
|
+
### `files list`
|
|
943
|
+
|
|
944
|
+
List a tenant's file library (Vorlagen) / Dateien auflisten
|
|
945
|
+
|
|
946
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
947
|
+
- **Effect:** read — changes nothing on the deployment
|
|
948
|
+
|
|
943
949
|
### `files put <key> <path>`
|
|
944
950
|
|
|
945
951
|
Create or replace a library file by key / Datei anlegen oder ersetzen
|
|
946
952
|
|
|
947
|
-
- **Right:**
|
|
953
|
+
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
948
954
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
949
955
|
|
|
950
956
|
| Option | Description |
|
|
@@ -953,15 +959,6 @@ Create or replace a library file by key / Datei anlegen oder ersetzen
|
|
|
953
959
|
| `--label-en <value>` | English label (required for a new key) |
|
|
954
960
|
| `--file-name <value>` | Download name (default: the local file name) |
|
|
955
961
|
|
|
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
962
|
## Identity (own account)
|
|
966
963
|
|
|
967
964
|
### `tenants`
|
|
@@ -12,8 +12,13 @@ every form at once — no republish.
|
|
|
12
12
|
|
|
13
13
|
## Prerequisites
|
|
14
14
|
|
|
15
|
-
- `plexus-cli` installed;
|
|
16
|
-
|
|
15
|
+
- `plexus-cli` installed; for the target env either the school's own token
|
|
16
|
+
holding `administration.config.manage` tenant-wide (listing needs
|
|
17
|
+
`administration.config.read`; see
|
|
18
|
+
[CLI access for a tenant admin](../users/cli-access-for-tenant-admin.md)), or a
|
|
19
|
+
platform-admin token with `_platform.config.manage` (listing:
|
|
20
|
+
`_platform.config.read`). The in-app right `stammdaten._self.configure` alone
|
|
21
|
+
is refused by the CLI.
|
|
17
22
|
- The `files` commands and the `fileKey` attachment shape must be **live** on
|
|
18
23
|
the target env before an offer that uses them is published (a platform
|
|
19
24
|
operator rolls a release out to staging, then prod). An offer published before
|
|
@@ -12,10 +12,11 @@ uploaded logo and uploaded font files — on staging and/or prod, without a rese
|
|
|
12
12
|
same right that gates `config apply`), or — for your OWN tenant only — a tenant
|
|
13
13
|
admin's token holding `administration.config.manage` (see
|
|
14
14
|
[CLI access for a tenant admin](../users/cli-access-for-tenant-admin.md)). Such a
|
|
15
|
-
token
|
|
16
|
-
`tenant.*` settings
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
token runs every `plexus-cli branding …` command and `config apply` for its own
|
|
16
|
+
tenant (branding is one of the `tenant.*` settings a school may change); `branding
|
|
17
|
+
show` needs `administration.config.read` at least. The in-app right
|
|
18
|
+
`administration.branding.manage` alone is refused by the CLI. A local admin key
|
|
19
|
+
without a user identity does **not** satisfy this gate.
|
|
19
20
|
- The `plexus-cli branding …` commands must be **live on the target env** first (they
|
|
20
21
|
call backend functions of the same release). A platform operator rolls a release out
|
|
21
22
|
to staging, then prod; only then run the CLI.
|
|
@@ -118,7 +119,7 @@ plexus-cli --env prod --tenant <slug> branding show
|
|
|
118
119
|
`set-font` are surgical.
|
|
119
120
|
- **Admin UI.** A tenant admin (holding `administration.branding.manage`) edits the same
|
|
120
121
|
row live under **Administration → Branding**. Use it for quick per-tenant tweaks; use the CLI
|
|
121
|
-
for reproducible, cross-env rollout
|
|
122
|
+
for reproducible, cross-env rollout.
|
|
122
123
|
|
|
123
124
|
## Gotchas
|
|
124
125
|
|