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

# Example CLI Use

> Usage examples and patterns for the HAIP CLI

This page provides comprehensive examples of how to use the HAIP CLI for various scenarios and use cases.

<Card title="Install the SDK" icon="download" href="/cli/installation" horizontal>
  You need the CLI Installed
</Card>

## Basic Examples

### Server Health Check

```bash theme={null}
# Check if server is running
haip health

# Check specific server
haip health --url http://my-server:8080

# Get detailed health information
haip health --format json
```

### Send Messages

```bash theme={null}
# Send open a chat with the echo tool
haip chat

# Send open a chat with the llm tool
haip chat --tool llm

# Choose a server to send the command to
haip chat --url ws://localhost:8080
```
