# GLPI COMMAND-LINE INTERFACE

GLPI includes a CLI tool to help you to manage your GLPI instance. This interface is provided by the `bin/console` script which can be run from the root of your GLPI directory.

Each command may have zero or more arguments or options. Arguments are positional pieces of information while options are not and are prefixed by one or two hyphens

## glpi:assets:cleansoftware

Aliases: `assets:cleansoftware`

### Description

Remove software versions with no installation and software with no version

### Arguments/Options

There are no arguments for this command

Options:

| Name  | Shortcut | Description                          | Required | Default | Array | Negatable |
| ----- | -------- | ------------------------------------ | -------- | ------- | ----- | --------- |
| --max | -m       | Max items to handle in one execution | Yes      | 500     | No    | No        |

## glpi:assets:purgesoftware

Aliases: `assets:purgesoftware`

### Description

Purge software with no version that are deleted.

### Arguments/Options

There are no arguments for this command

Options:

|          |              |                                      |              |             |           |               |
| -------- | ------------ | ------------------------------------ | ------------ | ----------- | --------- | ------------- |
| **Name** | **Shortcut** | **Description**                      | **Required** | **Default** | **Array** | **Negatable** |
| -max     | -m           | Max items to handle in one execution | Yes          | 500         | No        | No            |

### In GLPI WebUI

![Purge software action](https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-d9fda23f9f4b4c618cbf44861541c4b6ceec8f42%2Fassets_purge_software.png?alt=media)

## glpi:build:compile\_scss

Aliases: `build:compile_scss`

### Description

Compile SCSS file.

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="162">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--file</td><td>-f</td><td>File to compile (compile all SCSS files by default)</td><td>No</td><td>[]</td><td>Yes</td><td>Yes</td></tr><tr><td>--dry-run</td><td></td><td>Simulate compilation without actually save compiled CSS files</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:cache:clear

Aliases: `cache:clear, glpi:system:clear_cache, system:clear_cache`

### Description

Clear GLPI cache.

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="154">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--context</td><td>-c</td><td>Cache context to clear (i.e. 'core' or 'plugin:plugin_name'). All contexts are cleared by default.</td><td>Yes</td><td>[]</td><td>Yes</td><td>No</td></tr></tbody></table>

## glpi:cache:configure

Aliases: `cache:configure`

### Description

Define cache configuration

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="165">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--context</td><td></td><td>Cache context (i.e. 'core' or 'plugin:plugin_name')</td><td>Yes</td><td>core</td><td>No</td><td>No</td></tr><tr><td>--dsn</td><td></td><td>Cache system DSN</td><td>Yes</td><td>[]</td><td>Yes</td><td>No</td></tr><tr><td>--use-default</td><td></td><td>Unset cache configuration to use default filesystem cache for given context</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--skip-connection-checks</td><td></td><td>Skip connection checks</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

### Help

Valid cache systems are:&#x20;

* Memcached,&#x20;
* Redis (TCP),&#x20;
* Redis (TLS).

Memcached DSN format:&#x20;

* memcached://\[user:pass@]\[ip|host|socket\[:port]]\[?weight=int]&#x20;

Redis (TCP) DSN format:&#x20;

* redis\://\[pass@]\[ip|host|socket\[:port]]\[/db-index]&#x20;

Redis (TLS) DSN format:&#x20;

* rediss\://\[pass@]\[ip|host|socket\[:port]]\[/db-index]

Cache namespace can be use to ensure either separation or sharing of multiple GLPI instances data on same cache system.

### Usage

> * glpi:cache:configure --use-default
> * glpi:cache:configure --dsn=memcached://cache1.glpi-project.org --dsn=memcached://cache2.glpi-project.org
> * glpi:cache:configure --dsn=redis\://redis.glpi-project.org:6379/glpi

## glpi:cache:debug

Aliases: `cache:debug`

### Description

Debug GLPI cache.

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="183">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--key</td><td>-k</td><td>Cache key to debug.</td><td>Yes</td><td>[]</td><td>Yes</td><td>No</td></tr><tr><td>--context</td><td>-c</td><td>Cache context to clear (i.e. 'core' or 'plugin:plugin_name').</td><td>Yes</td><td>core</td><td>No</td><td>No</td></tr></tbody></table>

## glpi:cache:set\_namespace\_prefix

Aliases: `cache:set_namespace_prefix`

### Description

Define cache namespace prefix

### Arguments/Options

Arguments (in order):

| Name   | Description      | Required | Default |
| ------ | ---------------- | -------- | ------- |
| prefix | Namespace prefix | Yes      |         |

There are no options for this command

## glpi:config:set

Aliases: `config:set`

### Description

Set configuration value

### Arguments/Options

Arguments (in order):

| Name  | Description                                                   | Required | Default |
| ----- | ------------------------------------------------------------- | -------- | ------- |
| key   | Configuration key                                             | Yes      |         |
| value | Configuration value (ommit argument to be prompted for value) | Yes      |         |

Options:

| Name      | Shortcut | Description           | Required | Default | Array | Negatable |
| --------- | -------- | --------------------- | -------- | ------- | ----- | --------- |
| --context | -c       | Configuration context | Yes      | core    | No    | No        |

## glpi:database:check\_schema\_integrity

Aliases: `db:check_schema_integrity, glpi:database:check, db:check`

### Description

Check for schema differences between current database and installation file.

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="173">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--strict</td><td></td><td>Strict comparison of definitions</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-all-migrations</td><td></td><td>Check tokens related to all databases migrations.</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-innodb-migration</td><td></td><td>Check tokens related to migration from "MyISAM" to "InnoDB".</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-timestamps-migration</td><td></td><td>Check tokens related to migration from "datetime" to "timestamp".</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-utf8mb4-migration</td><td></td><td>Check tokens related to migration from "utf8" to "utf8mb4".</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-dynamic-row-format-migration</td><td></td><td>Check tokens related to "DYNAMIC" row format migration.</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--check-unsigned-keys-migration</td><td></td><td>Check tokens related to migration from signed to unsigned integers in primary/foreign keys.</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:database:configure

Aliases: `db:configure`

### Description

Define database configuration

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="174">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--db-host</td><td>-H</td><td>Database host</td><td>No</td><td>localhost</td><td>No</td><td>Yes</td></tr><tr><td>--db-name</td><td>-d</td><td>Database name</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--db-password</td><td>-p</td><td>Database password (will be prompted for value if option passed without value)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--db-port</td><td>-P</td><td>Database port</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--db-user</td><td>-u</td><td>Database user</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--reconfigure</td><td>-r</td><td>Reconfigure database, override configuration file if it already exists</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--strict-configuration</td><td></td><td>Use strict configuration, to enforce warnings triggering on deprecated or discouraged usages</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:database:enable\_timezones

Aliases: `db:enable_timezones`

### Description

Enable timezones usage.

## glpi:database:install

Aliases: `db:install`

### Description

Install database schema

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="186">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--db-host</td><td>-H</td><td>Database host</td><td>No</td><td>localhost</td><td>No</td><td>Yes</td></tr><tr><td>--db-name</td><td>-d</td><td>Database name</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--db-password</td><td>-p</td><td>Database password (will be prompted for value if option passed without value)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--db-port</td><td>-P</td><td>Database port</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--db-user</td><td>-u</td><td>Database user</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--reconfigure</td><td>-r</td><td>Reconfigure database, override configuration file if it already exists</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--strict-configuration</td><td></td><td>Use strict configuration, to enforce warnings triggering on deprecated or discouraged usages</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--default-language</td><td>-L</td><td>Default language of GLPI</td><td>No</td><td>en_GB</td><td>No</td><td>Yes</td></tr><tr><td>--force</td><td>-f</td><td>Force execution of installation, overriding existing database</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--enable-telemetry</td><td></td><td>Allow usage statistics sending to Telemetry service (<a href="https://telemetry.glpi-project.org">https://telemetry.glpi-project.org</a>)</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--no-telemetry</td><td></td><td>Disallow usage statistics sending to Telemetry service (<a href="https://telemetry.glpi-project.org">https://telemetry.glpi-project.org</a>)</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:database:update

Aliases: `db:update`

### Description

Update database schema to new version

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="187">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--allow-unstable</td><td>-u</td><td>Allow update to an unstable version</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--force</td><td>-f</td><td>Force execution of update from v-1 version of GLPI even if schema did not changed</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--enable-telemetry</td><td></td><td>Allow usage statistics sending to Telemetry service (<a href="https://telemetry.glpi-project.org">https://telemetry.glpi-project.org</a>)</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--no-telemetry</td><td></td><td>Disallow usage statistics sending to Telemetry service (<a href="https://telemetry.glpi-project.org">https://telemetry.glpi-project.org</a>)</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:ldap:synchronize\_users

Aliases: `ldap:sync`

### Description

Synchronize users against LDAP server information

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="200">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--only-create-new</td><td>-c</td><td>Only create new users</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--only-update-existing</td><td>-u</td><td>Only update existing users</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--ldap-server-id</td><td>-s</td><td>Synchronize only users attached to this LDAP server</td><td>No</td><td>[]</td><td>Yes</td><td>Yes</td></tr><tr><td>--ldap-filter</td><td>-f</td><td>Filter to apply on LDAP search</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--begin-date</td><td></td><td>Begin date to apply in "modifyTimestamp" filter (see <a href="http://php.net/manual/en/datetime.formats.php">http://php.net/manual/en/datetime.formats.php</a> for supported formats)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--end-date</td><td></td><td>End date to apply in "modifyTimestamp" filter (see <a href="http://php.net/manual/en/datetime.formats.php">http://php.net/manual/en/datetime.formats.php</a> for supported formats)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--deleted-user-strategy</td><td>-d</td><td><p>Force strategy used for deleted users (current configured action: "1") Possible values are:</p><ul><li>0: Preserve</li><li>1: Put in trashbin</li><li>2: Withdraw dynamic authorizations and groups</li><li>3: Disable</li><li>4: Disable + Withdraw dynamic authorizations and groups</li></ul></td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--restored-user-strategy</td><td>-r</td><td><p>Force strategy used for restored users (current configured action: "0") Possible values are:</p><ul><li>0: Do nothing</li><li>1: Restore (move out of trashbin)</li><li>2: Enable</li></ul></td><td>No</td><td></td><td>No</td><td>Yes</td></tr></tbody></table>

## glpi:maintenance:disable

Aliases: `maintenance:disable`

### Description

Disable maintenance mode

## glpi:maintenance:enable

Aliases: `maintenance:enable`

### Description

Enable maintenance mode

### Arguments/Options

There are no arguments for this command

Options:

| Name   | Shortcut | Description                        | Required | Default | Array | Negatable |
| ------ | -------- | ---------------------------------- | -------- | ------- | ----- | --------- |
| --text | -t       | Text to display during maintenance | No       |         | No    | Yes       |

## glpi:marketplace:download

Aliases: `marketplace:download`

### Description

Download plugin from the GLPI marketplace

### Arguments/Options

Arguments (in order):

| Name    | Description    | Required | Default |
| ------- | -------------- | -------- | ------- |
| plugins | The plugin key | Yes      | \[]     |

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="175">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--force</td><td>-f</td><td>Force download even if the plugin is already downloaded</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:marketplace:info

Aliases: `marketplace:info`

### Description

Get information about a plugin

### Arguments/Options

Arguments (in order):

| Name   | Description    | Required | Default |
| ------ | -------------- | -------- | ------- |
| plugin | The plugin key | Yes      |         |

There are no options for this command

## glpi:marketplace:search

Aliases: `marketplace:search`

### Description

Search GLPI marketplace

### Arguments/Options

Arguments (in order):

| Name | Description     | Required | Default |
| ---- | --------------- | -------- | ------- |
| term | The search term | No       |         |

There are no options for this command

## glpi:migration:appliances\_plugin\_to\_core

Aliases: `None`

### Description

Migrate Appliances plugin data into GLPI core tables

### Arguments/Options

There are no arguments for this command

Options:

| Name          | Shortcut | Description                  | Required | Default | Array | Negatable |
| ------------- | -------- | ---------------------------- | -------- | ------- | ----- | --------- |
| --skip-errors | -s       | Do not exit on import errors | No       |         | No    | No        |

## glpi:migration:build\_missing\_timestamps

Aliases: `None`

### Description

Set missing `date_creation` and `date_mod` values using log entries.

## glpi:migration:databases\_plugin\_to\_core

Aliases: `None`

### Description

Migrate Databases plugin data into GLPI core tables

### Arguments/Options

There are no arguments for this command

Options:

| Name          | Shortcut | Description                  | Required | Default | Array | Negatable |
| ------------- | -------- | ---------------------------- | -------- | ------- | ----- | --------- |
| --skip-errors | -s       | Do not exit on import errors | No       |         | No    | No        |

## glpi:migration:domains\_plugin\_to\_core

Aliases: `None`

### Description

Migrate Domains plugin data into GLPI core tables

### Arguments/Options

There are no arguments for this command

Options:

| Name          | Shortcut | Description                  | Required | Default | Array | Negatable |
| ------------- | -------- | ---------------------------- | -------- | ------- | ----- | --------- |
| --skip-errors | -s       | Do not exit on import errors | No       |         | No    | No        |

## glpi:migration:dynamic\_row\_format

Aliases: `None`

### Description

Convert database tables to "Dynamic" row format (required for "utf8mb4" character support).

## glpi:migration:myisam\_to\_innodb

Aliases: `None`

### Description

Migrate MyISAM tables to InnoDB

## glpi:migration:racks\_plugin\_to\_core

Aliases: `None`

### Description

Migrate Racks plugin data into GLPI core tables

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="179">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--ignore-other-elements</td><td>-i</td><td>Ignore "PluginRacksOther" models and elements</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--skip-errors</td><td>-s</td><td>Do not exit on import errors</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--truncate</td><td>-t</td><td>Remove existing core data</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--update-plugin</td><td>-u</td><td>Run Racks plugin update (you need version 1.8.0 files to do this)</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--without-plugin</td><td>-w</td><td>Enable migration without plugin files (we cannot validate that plugin data are compatible with supported 1.8.0 version)</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:migration:timestamps

Aliases: `None`

### Description

Convert "datetime" fields to "timestamp" to use timezones.

## glpi:migration:unsigned\_keys

Aliases: `None`

### Description

Migrate primary/foreign keys to unsigned integers

## glpi:migration:utf8mb4

Aliases: `None`

### Description

Convert database character set from "utf8" to "utf8mb4".

## glpi:plugin:activate

Aliases: `plugin:activate`

### Description

Activate plugin(s)

### Arguments/Options

Arguments (in order):

| Name      | Description      | Required | Default |
| --------- | ---------------- | -------- | ------- |
| directory | Plugin directory | No       | \[]     |

Options:

| Name  | Shortcut | Description                | Required | Default | Array | Negatable |
| ----- | -------- | -------------------------- | -------- | ------- | ----- | --------- |
| --all | -a       | Run command on all plugins | No       |         | No    | No        |

## glpi:plugin:deactivate

Aliases: `plugin:deactivate`

### Description

Deactivate plugin(s)

### Arguments/Options

Arguments (in order):

| Name      | Description      | Required | Default |
| --------- | ---------------- | -------- | ------- |
| directory | Plugin directory | No       | \[]     |

Options:

| Name  | Shortcut | Description                | Required | Default | Array | Negatable |
| ----- | -------- | -------------------------- | -------- | ------- | ----- | --------- |
| --all | -a       | Run command on all plugins | No       |         | No    | No        |

## glpi:plugin:install

Aliases: `plugin:install`

### Description

Run plugin(s) installation script

### Arguments/Options

Arguments (in order):

| Name      | Description      | Required | Default |
| --------- | ---------------- | -------- | ------- |
| directory | Plugin directory | No       | \[]     |

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="180">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--all</td><td>-a</td><td>Run command on all plugins</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--param</td><td>-p</td><td><p>Additionnal parameters to pass to the plugin install hook function</p><ul><li>"-p foo" will set "foo" param value to true</li><li>"-p foo=bar" will set "foo" param value to "bar"</li></ul></td><td>No</td><td>[]</td><td>Yes</td><td>Yes</td></tr><tr><td>--username</td><td>-u</td><td>Name of user used during installation script (among other things to set plugin admin rights)</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--force</td><td>-f</td><td>Force execution of installation, even if plugin is already installed</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

### Usage

> * glpi:plugin:install -p foo=bar -p force myplugin

## glpi:rules:process\_software\_category\_rules

Aliases: `rules:process_software_category_rules`

### Description

Process software category rules

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="180">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--all</td><td>-a</td><td>Process rule for all software, even those having already a defined category</td><td>No</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:rules:replay\_dictionnary\_rules

Aliases: `rules:replay_dictionnary_rules`

### Description

Replay dictionnary rules on existing items

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="234">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--dictionnary</td><td>-d</td><td>Dictionnary to use. Possible values are: CableType, ComputerModel, ComputerType, DatabaseInstanceType, GlpiSocketModel, ImageFormat, ImageResolution, Manufacturer, MonitorModel, MonitorType, NetworkEquipmentModel, NetworkEquipmentType, OperatingSystem, OperatingSystemArchitecture, OperatingSystemEdition, OperatingSystemKernel, OperatingSystemKernelVersion, OperatingSystemServicePack, OperatingSystemVersion, PeripheralModel, PeripheralType, PhoneModel, PhoneType, Printer, PrinterModel, PrinterType, Software</td><td>Yes</td><td></td><td>No</td><td>No</td></tr><tr><td>--manufacturer-id</td><td>-m</td><td>If option is set, only items having given manufacturer ID will be processed. Currently only available for Software dictionary.</td><td>Yes</td><td></td><td>No</td><td>No</td></tr></tbody></table>

## glpi:security:change\_key

Aliases: `None`

### Description

Change password storage key and update values in database.

## glpi:system:check\_requirements

Aliases: `system:check_requirements`

### Description

Check system requirements

## glpi:system:list\_services

Aliases: `system:list_services`

### Description

List system services

## glpi:system:status

Aliases: `system:status`

### Description

Check system status

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="202">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--format</td><td>-f</td><td>Output format [plain or json]</td><td>No</td><td>plain</td><td>No</td><td>Yes</td></tr><tr><td>--private</td><td>-p</td><td>Status information publicity. Private status information may contain potentially sensitive information such as version information.</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--service</td><td>-s</td><td>The service to check or all</td><td>No</td><td>all</td><td>No</td><td>Yes</td></tr></tbody></table>

## glpi:task:unlock

Aliases: `task:unlock`

### Description

Unlock automatic tasks

### Arguments/Options

There are no arguments for this command

Options:

<table><thead><tr><th>Name</th><th>Shortcut</th><th width="185">Description</th><th>Required</th><th>Default</th><th>Array</th><th>Negatable</th></tr></thead><tbody><tr><td>--all</td><td>-a</td><td>Unlock all tasks</td><td>No</td><td></td><td>No</td><td>No</td></tr><tr><td>--cycle</td><td>-c</td><td>Execution time (in cycles) from which the task is considered as stuck (delay = task frequency * cycle)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--delay</td><td>-d</td><td>Execution time (in seconds) from which the task is considered as stuck (default: 1800)</td><td>No</td><td></td><td>No</td><td>Yes</td></tr><tr><td>--task</td><td>-t</td><td>Itemtype::name of task to unlock (e.g: "MailCollector::mailgate")</td><td>No</td><td>[]</td><td>Yes</td><td>Yes</td></tr></tbody></table>

## glpi:tools:check\_database\_keys

Aliases: `tools:check_database_keys`

### Description

Check database for missing and errounous keys.

### Arguments/Options

There are no arguments for this command

Options:

| Name                   | Shortcut | Description          | Required | Default | Array | Negatable |
| ---------------------- | -------- | -------------------- | -------- | ------- | ----- | --------- |
| --detect-misnamed-keys |          | Detect misnamed keys | No       |         | No    | No        |
| --detect-useless-keys  |          | Detect misnamed keys | No       |         | No    | No        |

## glpi:tools:check\_database\_schema\_consistency

Aliases: `tools:check_database_schema_consistency`

### Description

Check database schema consistency.

## glpi:tools:delete\_orphan\_logs

Aliases: `tools:delete_orphan_logs`

### Description

Delete orphan logs

### Arguments/Options

There are no arguments for this command

Options:

| Name      | Shortcut | Description                                           | Required | Default | Array | Negatable |
| --------- | -------- | ----------------------------------------------------- | -------- | ------- | ----- | --------- |
| --dry-run |          | Simulate the command without actually delete anything | No       |         | No    | No        |
