3. Command Line InterfaceΒΆ
The REANA Server offers a CLI for user account operations.
Specifically, from the CLI an administrator can create new user accounts, and retrieve users based on given filters.
By default the server docker image is set to create the administrator account
on startup, which has the email info@reana.io and a token which is
generated using the secrets python library.
To retrieve the administrator token you can run:
$ reana-cluster env --all
or enter the database pod:
$ kubectl exec -ti <db-pod-name> /bin/bash
access the Postgresql database:
$ psql -U reana
and get all users:
> SELECT * FROM user_;
With the administrator access token, new user creation is allowed with:
$ flask users create --e=<email> --admin-access-token=<token>
Similarly, to retrieve information for all users:
$ flask users get --admin-access-token=<token>