> ## 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.

# Terminal

> Open your own shell inside the Coreflux HUB desktop app

> [!NOTE]
>
> Terminal is part of the **HUB desktop app** only. A browser HUB (Docker or Docker Compose) has no Terminal window, and its [Terminal cells](https://docs.coreflux.org/hub/lot-editor.md#terminal-cells) are read-only.

## Why use it

Checking a device, a network path or a local tool usually means leaving the HUB for a separate terminal. The Terminal window opens your own shell inside the HUB desktop, next to Data Viewer and the LoT Editor, so you can run a command and watch the broker react without switching apps.

## When to use it

* **Check the network** — Ping a PLC or a gateway before you set up a connector
* **Run local tools** — Scripts, `docker`, or any command-line tool installed on the computer running the HUB
* **Repeat commands with a project** — Keep them in [Terminal cells](https://docs.coreflux.org/hub/lot-editor.md#terminal-cells) in the notebook instead

***

## Open the Terminal

Open the account pill, choose **Hub**, then **Terminal**. Each window runs one shell. Open another Terminal window for a second shell.

The shell runs on the computer running the HUB, not on the broker host, with your user's files and permissions. It starts in your home folder.

![Coreflux HUB Terminal window with a zsh prompt, listing the filling-line project folder, running a script that publishes three Tank 1 readings, and reading line1/# back from the broker with mosquitto\_sub](https://mintcdn.com/coreflux/YElRx3gIxanoMf3j/images/hub/terminal/hub-terminal-window-light.png?fit=max\&auto=format\&n=YElRx3gIxanoMf3j\&q=85\&s=a51554320276a4554de847bb281eb684)

The Terminal window running a few commands: list a project folder, publish test readings, and read them back from the broker

## Which shell runs

| Computer running the HUB | Shell |
| - | - |
| **Linux** or **macOS** | Your login shell (`$SHELL`), for example zsh or bash, started as a login shell |
| **Windows** | Windows PowerShell |

There is no shell picker. `cmd.exe` and PowerShell 7 are not offered.

## When the shell exits

When the shell ends (for example after `exit`), a bar at the bottom shows its exit code. **New shell** starts another one in the same window.

Closing the window ends its shell, and quitting the HUB ends every shell it started. The Terminal stays in the main HUB window: it does not open in a new window.

## Keep it in the dock

Terminal starts out of the dock. To keep it there, right-click its icon while it runs and choose **Keep in Dock**, or turn it on under **Hub Settings → Dock**. See [Dock and status bar](https://docs.coreflux.org/hub/overview.md#dock-and-status-bar).

***

## Next steps

> [card] [Terminal cells](https://docs.coreflux.org/hub/lot-editor.md#terminal-cells)
>
> Run saved commands from a notebook cell.

> [card] [Desktop shell](https://docs.coreflux.org/hub/overview.md#desktop-shell)
>
> The account pill, Hub Settings and the dock.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.