> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreflux.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Command Console

> Execute broker commands directly from the Coreflux HUB

<Frame caption="Opening the Command Console from the Coreflux HUB System menu">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/open-command-console.gif?s=ab428d6473225471de5609e9b59b1c60" alt="Navigating to the Command Console in the Coreflux HUB by selecting System in the top navigation and clicking Command Console" width="800" height="500" data-path="images/open-command-console.gif" />
</Frame>

## Why Use the Command Console?

You need to run broker commands—add Actions, remove Routes, or perform other operations—without connecting an external MQTT client. The Command Console lets you execute broker commands directly from the Coreflux HUB.

## When to Use It

* **Adding entities** — Send `-addAction`, `-addRoute`, or similar commands
* **Removing entities** — Send `-removeAction`, `-removeRoute`, etc.
* **Other operations** — Any command supported by the broker's command topic

***

## How It Works

The Command Console sends your input to the broker. The broker processes the command and returns a response, which the HUB displays in the console output.

You do not need to:

* Subscribe to the command topic
* Use an external MQTT client (e.g., MQTT Explorer)
* Publish from the command line

The HUB handles the publish and can display the response when available.

<Frame caption="Command Console showing the ready prompt with subscription confirmations and the command input field at the bottom">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/command-console.png?fit=max&auto=format&n=W9CJ-kgVY3a3sCeL&q=85&s=03f702bec85a17907ce16f47790f4d09" alt="Coreflux HUB Command Console window with a connected status indicator, a header reading Coreflux Command Console v1.0 and Type commands below to interact with the broker — Use the help button for available commands, two Subscribed to command output topic confirmations, a timestamped $ prompt ready for input, and an Enter command input field with a send button at the bottom, plus connection, clear, and help icons in the top-right" width="1024" height="639" data-path="images/command-console.png" />
</Frame>

## Entering Commands

1. In the HUB top navigation, select **System**, then **Command Console**.
2. Enter the command in the input field (e.g., `-addAction DEFINE ACTION ...`).
3. Send the command. The broker processes it and returns a result.

***

## Next Steps

<CardGroup cols={2}>
  <Card title="MQTT Broker Commands" icon="terminal" href="/mqtt-broker/commands">
    Learn available broker commands and syntax.
  </Card>

  <Card title="Broker Logs" icon="file-lines" href="/coreflux-hub/system/broker-logs">
    View command execution logs.
  </Card>
</CardGroup>
