Tenants
List, create, rename and delete tenants with loot tenant, and set the demo marker and the AI settings of a tenant.
What a tenant is#
A tenant is a self-contained area of a LooT installation: it has its own nodes, members, groups and permissions. Every path starts with the name of a tenant (Brewery/Plant.Line1). Users can be members of several tenants.
Two roles matter for the commands on this page:
- System admins administer the whole installation. Only they create and delete tenants.
- Tenant admins manage the members, groups and permissions of a tenant and have all permissions there. Whoever creates a tenant becomes a member and tenant admin in the same step.
You manage members and groups in the web interface (tenant administration); permissions can also be granted by command (Permissions).
| Command | Purpose | Who may |
|---|---|---|
loot tenant list | List tenants | all signed-in users |
loot tenant create | Create a tenant | system admins |
loot tenant rename | Rename a tenant | tenant admins and system admins |
loot tenant delete | Delete a tenant | system admins |
loot tenant demo | Set or remove the demo marker | system admins |
loot tenant ai | Show and change the AI settings | see the command |
loot tenant list#
Lists the tenants you may see.
loot tenant list$ loot tenant list
Id Name Demo
-- ----------- ----
7 Brewery
12 Distillery
15 Tutorial ja| Column | Meaning |
|---|---|
Id | Number of the tenant. You can give it instead of the name wherever <tenant> is described as "name or id". |
Name | Name of the tenant |
Demo | ja (yes) if the tenant is marked as a demo tenant |
loot tenant create#
Creates a tenant. Only system admins may do this.
loot tenant create <name>| Argument | Meaning |
|---|---|
<name> | Name of the new tenant. It may be at most 200 characters long, must not contain . or / and must not start or end with a space. |
$ loot tenant create "Brewery"
Tenant 'Brewery' angelegt (Id 7); du bist dort Mitglied und Tenant-Admin.Afterwards you are a member and tenant admin of the new tenant. If you do not want that, appoint someone else as admin and leave the tenant in the web interface.
loot tenant rename#
Renames a tenant. The paths of all nodes change accordingly; nodes, values and permissions stay as they are.
loot tenant rename <tenant> <new-name>| Argument | Meaning |
|---|---|
<tenant> | Current name of the tenant |
<new-name> | New name; the same rules apply as when creating |
$ loot tenant rename Brauerei "Brewery"
Tenant 'Brauerei' heißt jetzt 'Brewery'.loot tenant delete#
Deletes a tenant. Only system admins may do this.
loot tenant delete <name> [--recursive] [--no-wait]| Argument or option | Meaning |
|---|---|
<name> | Name of the tenant |
--recursive | Also deletes all nodes together with their values. Without this option the server refuses to delete while the tenant has content (a conflict message). An empty tenant can be deleted without it. |
--no-wait | Does not wait for the end of a deletion in the background |
Small tenants are deleted at once. Large content is deleted by the server in the background: the actual work continues on the server. loot then shows the deletion and its progress and waits until the end, unless you give --no-wait.
$ loot tenant delete Distillery --recursive
Löschung 31 gestartet: Distillery wird im Hintergrund gelöscht (48210 Nodes).
2400/48210 Nodes, 9120000 Werte
17800/48210 Nodes, 70410000 Werte
Gelöscht: Distillery (48210 Nodes, 190300000 Werte).$ loot tenant delete Distillery --recursive --no-wait
Löschung 31 gestartet: Distillery wird im Hintergrund gelöscht (48210 Nodes).
Stand abfragen: loot deletion show 31loot deletion show shows the state of a running deletion.
loot tenant demo#
Sets or removes the demo tenant marker. Only system admins may do this. Demo tenants serve learners and prospects who try out LooT (see learning mode): new users of the installation automatically become members of the tenant and of the group Lernende (learners).
loot tenant demo <tenant> (--on | --off)| Argument or option | Meaning |
|---|---|
<tenant> | Name or id of the tenant |
--on | Mark as a demo tenant: new users become members and members of the group "Lernende" |
--off | Remove the marker; the group and the members remain |
Give exactly one of the two options, otherwise the command ends with exit code 2.
$ loot tenant demo Tutorial --on
Tenant 'Tutorial' ist Demo-Tenant: neue Benutzer werden Mitglied und Mitglied der Gruppe 'Lernende'.
$ loot tenant demo Tutorial --off
Tenant 'Tutorial' ist kein Demo-Tenant mehr; Gruppe und Mitglieder bleiben.The Demo column of loot tenant list shows the state.
loot tenant ai#
Shows or changes the AI analysis settings of a tenant (forecasts and questions to a language model). Without options the command only shows them.
loot tenant ai <tenant> [--enable | --disable] [--allow <capability>=<model>,…] [--default <capability>=<model>]| Argument or option | Meaning | Who |
|---|---|---|
<tenant> | Name or id of the tenant | |
--enable | Enable the AI analysis for the tenant | system admins |
--disable | Disable the AI analysis for the tenant | system admins |
--allow <capability>=<model>,… | Allowed models of a capability, for example forecast=chronos-2,timesfm-2.5. Empty (forecast=) allows all models in operation. | system admins |
--default <capability>=<model> | Default model of a capability, for example forecast=chronos-2. Empty (forecast=) resets it. | tenant admins |
--enable and --disable exclude each other. --allow and --default can be repeated to change several capabilities. There are two capabilities: forecast (forecasts, see loot forecast) and chat (questions to a language model, see loot ask). loot forecast models and loot ask models show which models exist.
$ loot tenant ai "Brewery" --enable --allow forecast=chronos-2,timesfm-2.5 --default forecast=chronos-2
KI-Analyse: aktiv
Fähigkeit Erlaubte Modelle Standardmodell
--------- ------------------------ --------------
forecast chronos-2, timesfm-2.5 chronos-2
chat alle betriebenen –For members to use the AI analysis, the tenant also needs the permissions use forecasts and ask AI granted to them; you grant them with loot permission grant (--rights forecast,chat). If the AI analysis is not enabled for the tenant, the server rejects the commands with a notice.