Some clarification from Tutorial

I am installing the current version of nextcloud onto a ubuntu 20 server image. I am following this tutorial: I get to this command: sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess. I run it, and I get the following:
Nextcloud is not installed - only a limited number of commands are available
There are no commands defined in the ā€œmaintenance:updateā€ namespace.
Did you mean this?
Here is where my nextcloud is installed: /var/www/nextcloud.
How do I proceed from here?