--- layout: documentation title: Runtime Commands --- # Runtime Commands It is possible to query and even change the state of entities like items or things. Therefore the console offers commands in various areas: [[toc]] ::: tip Note Some of the described commands are executed on the internal database and could break your installation. Please use this functionality only if you know what you are doing! ::: ## Examples Query an item's state: ```shell openhab> openhab:status Heating_GF_Corridor OFF ``` Changing an item's state: ```shell openhab> openhab:send Heating_GF_Corridor ON Command has been sent successfully. ``` Get help for a command: ```shell openhab> help openhab:send Usage: openhab:send - sends a command for an item ``` ### Items | Command | Description | |-----------------------------------|---------------------------------------------------------------------| | `openhab:status ` | shows the current status of an item | | `openhab:update ` | sends a status update for an item | | `openhab:send ` | sends a command for an item | | `openhab:items list []` | lists names and types of all items (matching the pattern, if given) | | `openhab:items clear` | removes all items | | `openhab:items remove ` | removes the given item | ### Discovery | Command | Description | |------------------------------------------------------|----------------------------------------------------------------------------| | `openhab:discovery start ` | runs a discovery on a given thing type or binding | | `openhab:discovery enableBackgroundDiscovery ` | enables background discovery for the discovery service with the given PID | | `openhab:discovery disableBackgroundDiscovery ` | disables background discovery for the discovery service with the given PID | ### Inbox | Command | Description | |--------------------------------------------|------------------------------------| | `openhab:inbox list` | lists all current inbox entries | | `openhab:inbox listignored` | lists all ignored inbox entries | | `openhab:inbox approve