Command univention-app

8. Command univention-app#

univention-app is a program to manage apps from Univention App Center on the command line on a UCS system.

This section describes a selection of the available commands. For a complete list of available commands, run univention-app without any arguments and univention-app <command> --help for details on a specific command.

shell [-h] [-u USER] [-i] [-t] [-s SERVICE_NAME] app command#

The univention-app shell command allows to run commands within a Docker app.

For multi container apps, univention-app shell runs the command in the main container which is the default behavior. The app metadata defines the app’s “main service”. For more information about referencing containers, see Create a Multi Container App.

To run a command in the main service of the app:

Listing 8.1 Run a shell command inside the app’s main service#
$ univention-app shell <app> <command>

To run a command in a specific service of the app, such as creating a backup of a MongoDB database:

Listing 8.2 Run a shell command inside the app’s main service#
$ univention-app shell -s <service-name> <app> mongodump --out /data/backup

For descriptions of the outline options and arguments of univention-app shell, refer to the console output of:

Listing 8.3 Show options and arguments of univention-app shell#
$ univention-app shell --help