@smartkomm/plexus-cli 0.1.20 → 0.1.22
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
113348d2e8a831c206d554a9b3e963355b521ed9d61fca5ada597cb32c3b42af
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
|
|
4
|
+
290 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
7
|
- [Admission](#admission) (15)
|
|
@@ -26,7 +26,7 @@ Generated from the commands the CLI registers — do not edit; `plexus-cli <comm
|
|
|
26
26
|
- [Signing](#signing) (13)
|
|
27
27
|
- [Stammdaten](#stammdaten) (2)
|
|
28
28
|
- [Stripe](#stripe) (3)
|
|
29
|
-
- [Tenant users](#tenant-users) (
|
|
29
|
+
- [Tenant users](#tenant-users) (14)
|
|
30
30
|
- [Users](#users) (20)
|
|
31
31
|
- [Work-Items](#work-items) (5)
|
|
32
32
|
|
|
@@ -3196,7 +3196,7 @@ Invite a new member of staff to this school: account, access and a one-time sign
|
|
|
3196
3196
|
| `--email <value>` (required) | The sign-in address; the link goes there. |
|
|
3197
3197
|
| `--language <value>` (required) | de or en — the letters' language of a new account. |
|
|
3198
3198
|
| `--group <value>` | A staff group, by key, id or exact label (`tenant-users groups list`); needs administration.permissions.manage. |
|
|
3199
|
-
| `--unit <value>` | The group's unit, by
|
|
3199
|
+
| `--unit <value>` | The group's unit, by its key (`tenant-users units list`); only with --group. |
|
|
3200
3200
|
| `--confirm` | Write and mail (without it, only the plan is printed). |
|
|
3201
3201
|
|
|
3202
3202
|
### `tenant-users list`
|
|
@@ -3257,6 +3257,12 @@ Ask a user by mail to store their own signature — only while none is stored, a
|
|
|
3257
3257
|
|
|
3258
3258
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
3259
3259
|
|
|
3260
|
+
### `tenant-users units list`
|
|
3261
|
+
|
|
3262
|
+
List the school's units by key — the options of `tenant-users invite --unit`.
|
|
3263
|
+
|
|
3264
|
+
- **Effect:** read — changes nothing on the deployment
|
|
3265
|
+
|
|
3260
3266
|
## Users
|
|
3261
3267
|
|
|
3262
3268
|
### `accounts email-changes`
|
|
@@ -69,14 +69,16 @@ without one, and nobody sets a password for them:
|
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
71
|
plexus-cli --env <env> --tenant <slug> tenant-users groups list # label, key, id
|
|
72
|
+
plexus-cli --env <env> --tenant <slug> tenant-users units list # label, key — for --unit
|
|
72
73
|
plexus-cli --env <env> --tenant <slug> tenant-users invite --first-name <first> --last-name <last> --email <email> --language de --group <key>
|
|
73
74
|
plexus-cli --env <env> --tenant <slug> tenant-users invite --first-name <first> --last-name <last> --email <email> --language de --group <key> --confirm
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
- `--group` takes the key, the id or the exact label; `--unit <key>` (from
|
|
77
|
-
`
|
|
78
|
-
|
|
79
|
-
`administration.permissions.manage` as well —
|
|
78
|
+
`tenant-users units list`) only together with `--group` — an unknown key is
|
|
79
|
+
refused by the backend. Giving a group needs
|
|
80
|
+
`administration.permissions.manage` as well — tenant-wide for a group
|
|
81
|
+
without `--unit`, for that unit (or tenant-wide) with it; without it, invite without
|
|
80
82
|
`--group` and let someone who has it assign the group in the app.
|
|
81
83
|
- `--language` (`de` or `en`) is the language of the letters for a **new**
|
|
82
84
|
account; someone who already works at another school keeps their own.
|