CLI
Scope admins can use the CLI to manage scopes, schema validation, and members. For users, the CLI is mainly used to authenticate with QDL and create API tokens for the SDK. A full description of the CLI is given below.
Usage:
Options:
--help: Show this message and exit.
Commands:
login: Log in to QDL.logout: Log out of QDL.status: List availability of QDL system components.groups: Get user group info.users: Get user info.scope: Manage scopestoken: Manage tokensshow: Show daemon infome: Manage user
login
Log in to QDL.
The user authenticates (signs in) in order to gain authorization for specific QDL functions.
Usage:
Options:
--help: Show this message and exit.
logout
Log out of QDL.
Some specific QDL functions for which authentication is needed will stop working.
Usage:
Options:
--help: Show this message and exit.
status
List availability of QDL system components.
Usage:
Options:
--help: Show this message and exit.
groups
Get user group info.
Filters can be added. Name matches when the filter is part of the value, uid match when the value starts with the value.
Usage:
Options:
-n, --name TEXT: Filter on (part of) name-u, --uid TEXT: Filter on (starts with) uid--external / --not-external: Only show external user groups-q, --quick: Only show identifiers in result--help: Show this message and exit.
users
Get user info.
Filters can be added. Name and email match when the filter is part of the value, role and sub only match when they are exactly equal.
Usage:
Options:
-n, --name TEXT: Filter on (part of) name-r, --role TEXT: Filter on (exact) role-e, --email TEXT: Filter on (part of) email-s, --sub TEXT: Filter on (exact) sub identification--enabled / --disabled: Only show enabled/disabled users-q, --quick: Only show identifiers in result--help: Show this message and exit.
scope
Manage scopes
Usage:
Options:
--help: Show this message and exit.
Commands:
list: List scopes available in QDL.create: Create scope with uid as unique identifier.update: Update scope identified by uid.add: Add the user identified by user-sub or...remove: Remove the user identified by user-sub or...members: Show the members of the scope identified...uid: Generate a unique uid for the scope to...
scope list
List scopes available in QDL.
Usage:
Options:
--help: Show this message and exit.
scope create
Create scope with uid as unique identifier.
Name must be given. Description is optional, Scope is restricted by default.
Usage:
Arguments:
UID: Unique identifier of the scope [required]NAME: Name of the scope [required][DESCRIPTION]: Description for the scope
Options:
--restricted / --not-restricted: Make scope restricted [default: restricted]--help: Show this message and exit.
scope update
Update scope identified by uid.
Usage:
Arguments:
UID: Unique identifier of the scope to change [required]
Options:
--name TEXT: Name of the scope--description TEXT: Description for the scope--restricted / --not-restricted: Make scope restricted--archived / --not-archived: Archive scope--help: Show this message and exit.
scope add
Add the user identified by user-sub or user group identified by usergroup-uid as a member to the scope identified by scope-uid. The sub is the identification of the user as registered in the identity provider.
Identification of scope uid is required.
Usage:
Arguments:
UID: Unique identifier of the scope [required]
Options:
-u, --user TEXT: Add user identified by sub as a member to scope-g, --group TEXT: Add user group identified by uid as a member to scope--help: Show this message and exit.
scope remove
Remove the user identified by user-sub or user group identified by usergroup-uid as a member from the scope identified by scope-uid. The sub is the identification of the user as registered in the identity provider.
Identification of scope uid is required.
Usage:
Arguments:
UID: Unique identifier of the scope [required]
Options:
-u, --user TEXT: Remove user identified by sub as a member from scope-g, --group TEXT: Remove user group identified by uid as a member from scope--help: Show this message and exit.
scope members
Show the members of the scope identified by scope-uid. Members shown are users (-u) user groups (-g) or users and user groups disaggregated to its users (-a).
Identification of scope uid is required.
Usage:
Arguments:
UID: Unique identifier of the scope [required]
Options:
-u, --user: Only show user members of scope-g, --group: Only show user group members of scope-a, --all-users: Show all user members (user members and users of user groups members)-q, --quick: Only show identifiers in result--help: Show this message and exit.
scope uid
Generate a unique uid for the scope to create.
Usage:
Options:
--help: Show this message and exit.
token
Manage tokens
Usage:
Options:
--help: Show this message and exit.
Commands:
list: List tokens available in QDL for current...create: Create token.set: Set token.delete: Delete token from QDL.
token list
List tokens available in QDL for current user.
Usage:
Options:
--help: Show this message and exit.
token create
Create token.
When the token name already exist, the attached token will be changed. The previous token is invalidated.
Usage:
Arguments:
TOKEN_NAME: Name of the token to create [required]
Options:
--help: Show this message and exit.
token set
Set token.
The token is used by the daemon to authenticate.
Usage:
Arguments:
TOKEN: Token to use to authenticate [required]
Options:
--help: Show this message and exit.
token delete
Delete token from QDL.
When the currently used token is deleted, the next call will be unauthenticated until a new token is set.
Usage:
Arguments:
TOKEN_NAME: Name of the token to delete [required]
Options:
--help: Show this message and exit.
show
Show daemon info
Usage:
Options:
--help: Show this message and exit.
Commands:
log: Show the internal log of daemon.queue: Show the internal state of the daemon queue.
show log
Show the internal log of daemon.
Usage:
Arguments:
[NR_LINES]: Number of lines from end of log (0 = all) [default: 100]
Options:
--help: Show this message and exit.
show queue
Show the internal state of the daemon queue.
Usage:
Options:
--help: Show this message and exit.
me
Manage user
Usage:
Options:
--help: Show this message and exit.
Commands:
scopes: Show the scopes the current user is member...show: Show the info of the current user.
me scopes
Show the scopes the current user is member of.
Usage:
Options:
--help: Show this message and exit.
me show
Show the info of the current user.
Usage:
Options:
--help: Show this message and exit.