user

Only works if authentication is enabled in the config

This command is used to manage the users of the REST-API. This is the only way to manage users to keep the security more tight and the simplicity where it should be

User management

create

Create is used to create a new user. The password is prompted interactively upon creation.

apisense api user create admin

Create a user named admin

list (ls)

With the list (alias: ls) command you can list all users in the local database.

List the users in the database

disable

Users are enabled by default and can access restricted endpoints. To disable them use the disable command

Disables the newly created user admin

enable

If you want to re-enable a disabled use you can use the enable command

Re-enable the user admin

remove

Finally, to remove a user use the remove command

Last updated