The 'user' command
The user
command can be used to manage the OwnStats user.
Actions
There are two different supported actions:
create
: This create a new Cognito UserPool user that is used to access the frontend application. Within the process, you will need to supply a valid email address and a password.update-password
: The existing password for the user can be changed with this action. You will need to specify the old password, and then a new one.
Password rules
The password needs to have all of the following features:
- A minimum length of 8 characters / numbers
- At least one lowercase character
- At least one number
- At least one uppercase character
Usage
USAGE $ ownstats user ACTION
ARGUMENTS ACTION (create|update-password) The action to perform
DESCRIPTION Manage OwnStats user
Example usage
For example, if you want to create a new user for your OwnStats deployment to be able to log into the frontend, you can use
ownstats user create
To update the password, the following command is used:
ownstats user update-password