Resetting the admin password
When NextCloud is configured, the user should be able to reset the administrator password from UI. This can be done from CLI with:
export OC_PASS=abc
sudo -u nobody php-cli /srv/www/nextcloud/occ user:resetpassword --password-from-env <username>