@smartkomm/plexus-cli 0.1.20 → 0.1.21

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
- 6bd1848e1a792dacbfc29a58eb3516ad4e8a34841abd0d93ff155b2f32fc858a
1
+ 708ba1ab9377bc1246bb097487a57daa2c5c3556d666ec55348d483cd6510733
@@ -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
- 289 commands. Every network command also takes `--env <local|staging|prod>`, `--tenant <slug>`,
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) (13)
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 config key or id (`org tree`); only with --group. Resolving it reads the organisation tree (administration.organizationStructure.manage). |
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,13 +69,14 @@ 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
- `org tree`) only together with `--group` — naming a unit reads the
78
- organisation tree, which needs `administration.organizationStructure.manage`. Giving a group needs
78
+ `tenant-users units list`) only together with `--group` — an unknown key is
79
+ refused by the backend. Giving a group needs
79
80
  `administration.permissions.manage` as well — without it, invite without
80
81
  `--group` and let someone who has it assign the group in the app.
81
82
  - `--language` (`de` or `en`) is the language of the letters for a **new**