Nextcloud App Updates- A Step-by-Step Guide for Shell Users » History » Revision 4
Revision 3 (Gareth Eaton, 03/18/2024 04:42 PM) → Revision 4/5 (Gareth Eaton, 03/18/2024 04:43 PM)
h1. Nextcloud +App+ Updates
The procedure for updating an app within a Nextcloud installation from the command line
Navigate to the Nextcloud installation directory. The location may vary depending on your server setup. Typically, it can be found in the /var/www/nextcloud/ directory.
<pre>
cd /var/www/nextcloud/
</pre>
Put your Nextcloud instance into maintenance mode. This step ensures that no user interactions occur during the update process, which helps prevent data inconsistencies.
<pre>
sudo -u www-data php occ maintenance:mode --on
</pre>
Update the Collabora Online - Built-in CODE Server app using the following command:
<pre>
sudo -u www-data php occ app:update <app_name>
</pre>
Once the update is complete, disable the maintenance mode.
<pre>
sudo -u www-data php occ maintenance:mode --off
</pre>
----
Check for available app updates using the following command:
<pre>
sudo -u www-data php occ app:list
</pre>