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

# CLI Commands

> CatOps Hub command-line reference

The Hub binary is installed at `/opt/catops/catops-hub`.

## serve

Start the Hub server.

```bash theme={null}
/opt/catops/catops-hub serve
```

Options:

| Flag     | Description      | Default        |
| -------- | ---------------- | -------------- |
| `--http` | Address and port | `0.0.0.0:8090` |

Example with custom port:

```bash theme={null}
/opt/catops/catops-hub serve --http 0.0.0.0:9000
```

<Info>
  The systemd service runs this command automatically. You don't need to run it manually.
</Info>

## version

Show the current version.

```bash theme={null}
/opt/catops/catops-hub version
```

Or:

```bash theme={null}
/opt/catops/catops-hub --version
```

## update

Update to the latest version using the update script:

```bash theme={null}
curl -fsSL https://get.catops.app/update-hub.sh | sh
```

<Info>
  If you installed with `--auto-update`, updates happen daily automatically.
</Info>

## deactivate

Remove the license from this server.

```bash theme={null}
sudo -u catops /opt/catops/catops-hub deactivate
```

Use this when:

* Moving your license to another server
* Before uninstalling Hub

<Warning>
  After deactivation, you'll need to enter a license key again to use Hub.
</Warning>
