Comandos Owncloud

De Base de conocimiento
Ir a la navegación Ir a la búsqueda

Comandos de ejemplo Ejecutar occsin opciones enumera todos los comandos y opciones, como este ejemplo en Ubuntu:

sudo -u www-data php occ ownCloud version 10.0.8

Usage:

command [options] [arguments]

==== Options

-h, --help            Display this help message
-q, --quiet           Do not output any message
-V, --version         Display this application version
    --ansi            Force ANSI output
    --no-ansi         Disable ANSI output
-n, --no-interaction  Do not ask any interactive question
    --no-warnings     Skip global warnings, show command output only
-v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output,
                      2 for more verbose output and 3 for debug

Available commands:

check                 Check dependencies of the server environment
help                  Displays help for a command
list                  Lists commands
status                Show some status information
upgrade               Run upgrade routines after installation of

Obtenga información detallada sobre comandos individuales con el helpcomando, como este ejemplo para el maintenance:modecomando.

sudo -u www-data php occ help maintenance:mode Usage:

maintenance:mode [options]

Options

    --on              Enable maintenance mode
    --off             Disable maintenance mode
    --output[=OUTPUT] Output format (plain, json or json_pretty, default is plain) [default: "plain"]
-h, --help            Display this help message
-q, --quiet           Do not output any message
-V, --version         Display this application version
    --ansi            Force ANSI output
    --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
    --no-warnings     Skip global warnings, show command output only
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output,
                      2 for more verbose output and 3 for debug

Comandos de la aplicación Los appcomandos enumeran, habilitan y deshabilitan aplicaciones.

app

  app:check-code   check code to be compliant
  app:disable      disable an app
  app:enable       enable an app
  app:getpath      Get an absolute path to the app directory
  app:list         List all available apps

Habilitar una aplicación Habilite una aplicación, por ejemplo, la aplicación Market.

  sudo -u www-data php occ app:enable market
  market enabled
  Deshabilitar una aplicación
  sudo -u www-data php occ app:disable market
  market disabled
                      a new release. The release has to be installed before