Skip to content

Commit

Permalink
Document plugins commands; refs #40
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Apr 14, 2020
1 parent 38604da commit 64087d0
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions source/command-line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Calling ``php bin/console`` from GLPI directory displays the list of available c

If APCu is installed on your system, it may fail from command line since default configuration disables it from command-line. To change that, set ``apc.enable_cli`` to ``on`` in your APCu configuration file.

.. warning::

When using cli tools, please check the system user you are currently logged in with, and permissions on files and directories. With a wrong user, logs, cache and other files may be created with rights that would not allow your webserver to read or write on thos files!

.. _cdline_options:

Console options
Expand Down Expand Up @@ -89,7 +93,7 @@ Possible options for this command are:

See also :ref:`console options <cdline_options>`.

Database tools
Various tools
--------------

Database schema check
Expand All @@ -114,9 +118,6 @@ If you have any diff, output will looks like :
+ `pattern` text
primary key (`id`)
LDAP tools
-----------

LDAP synchonization
^^^^^^^^^^^^^^^^^^^

Expand All @@ -142,9 +143,6 @@ See http://php.net/manual/en/datetime.formats.php for supported date formats in

See also :ref:`console options <cdline_options>`.

Tasks tools
-----------

Task unlock
^^^^^^^^^^^

Expand All @@ -163,6 +161,26 @@ Possible options for this command are:

See also :ref:`console options <cdline_options>`.

Plugins tools
-------------

.. versionadded:: 9.5

Some command line tolls are also available to manage plugins from command line:

* ``glpi:plugin:install``
* ``glpi:plugin:activate``
* ``glpi:plugin:deactivate``

In order to install ``MyGreatPlugin``; you should end with something like:

.. ::

$ ./bin/console glpi:plugin:install MyGreatPlugin
$ ./bin/console glpi:plugin:activate MyGreatPlugin

Each of those plugin commands can take a plugin name as argument, or the ``--all`` flag to be ran on all plugins.

Migration tools
---------------

Expand Down

0 comments on commit 64087d0

Please sign in to comment.