Run the following command in your application’s root directory:
php ./bin/cli.php admin:create -i {IDENTITY} -p {PASSWORD} -f {FIRST_NAME} -l {LAST_NAME}
OR
php ./bin/cli.php admin:create --identity {IDENTITY} --password {PASSWORD} --firstName {FIRST_NAME} --lastName {LAST_NAME}
after replacing:
NOTE:
If the submitted data is valid, the outputted response is:
Admin account has been created.
The new admin account is ready to use.
You can get more help with this command by running:
php ./bin/cli.php help admin:create