Project

General

Profile

Actions

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.

cd /var/www/nextcloud/

Put your Nextcloud instance into maintenance mode. This step ensures that no user interactions occur during the update process, which helps prevent data inconsistencies.

sudo -u www-data php occ maintenance:mode --on

Update the Collabora Online - Built-in CODE Server app using the following command:

sudo -u www-data php occ app:update <app_name>

Once the update is complete, disable the maintenance mode.

sudo -u www-data php occ maintenance:mode --off

Check for available app updates using the following command:

sudo -u www-data php occ app:list

Some app updates or Nextcloud updates might require database migrations. After updating, it's a good practice to run sudo -u www-data php occ upgrade to ensure any necessary database migrations are applied. This command should be run while the system is still in maintenance mode.

Updated by Gareth Eaton 8 months ago · 5 revisions