Market

Marketplace URL: Market

The market commands install, uninstall, list, and upgrade applications from the ownCloud Marketplace.

market
  market:install    Install apps from the marketplace. If already installed and
                    an update is available the update will be installed.
  market:uninstall  Uninstall apps from the marketplace.
  market:list       Lists apps as available on the marketplace.
  market:upgrade    Installs new app versions if available on the marketplace
The user running the update command, which will likely be your webserver user, requires write permission for the /apps respectively apps-external folder.
If they don’t have write permission, the command may report that the update was successful, but it may silently fail.

These commands are not available in single-user (maintenance) mode. For more details please see the Maintenance Commands section in the occ core command set.

Install an Application

Applications can be installed both from the ownCloud Marketplace and from a local file archive.

Install Apps From The Marketplace

To install an application from the Marketplace, you need to supply the app’s id, which can be found in the app’s Marketplace URL. For example, the URL for Two factor backup codes is https://marketplace.owncloud.com/apps/twofactor_backup_codes. So its app id is twofactor_backup_codes.

sudo -u www-data php occ market:install <ids> [option]

Arguments

ids

Ids of the apps

Options

-l [LOCAL]
--local=[LOCAL]

Optional path to a local app package.

Install Apps From a File Archive

To install an application from a local file archive, you need to supply the path to the archive, and that you pass the -l switch. Only zip, gzip, and bzip2 archives are supported.

Usage Example

# Install an app from the marketplace.
sudo -u www-data php occ market:install twofactor_backup_codes

# Install an app from a local archive.
sudo -u www-data php occ market:install -l /mnt/data/richdocuments-2.0.0.tar.gz
The target directory has to be accessable to the webserver user and you have to enable the app afterwards with the occ app:enable command.

Uninstall an Application

To uninstall an application use the following commands:

sudo -u www-data php occ market:uninstall <ids>

Arguments

ids

Ids of the apps

List Apps From The Marketplace

This command lists apps available on the marketplace. It returns the ids of the apps.

sudo -u www-data php occ market:list

Upgrade an Application

Install new app versions if available on the marketplace by using following commands:

sudo -u www-data php occ market:upgrade <ids> [options]

Arguments

ids

Ids of the apps

Options

-l [LOCAL]
--local=[LOCAL]

Optional path to a local app package.

--major

Allow update to a new major version.