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

# Weaviate CLI

> CLI commands for Weaviate vector store

# Weaviate CLI

## Setup

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
pip install weaviate-client
export WEAVIATE_URL=https://your-cluster.weaviate.cloud
export WEAVIATE_API_KEY=your-api-key
```

## Quick Start

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Test connection
praisonai persistence doctor \
  --knowledge-url "$WEAVIATE_URL"

# Run with knowledge store
praisonai persistence run \
  --knowledge-backend weaviate \
  "Search my documents"
```

## Commands

### Doctor

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence doctor \
  --knowledge-url "https://your-cluster.weaviate.cloud"
```

### Run with Knowledge

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence run \
  --knowledge-backend weaviate \
  --session-id my-session \
  "What do my documents say?"
```

## Python Test

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
python3 -c "
import weaviate
from weaviate.classes.init import Auth

client = weaviate.connect_to_weaviate_cloud(
    cluster_url='$WEAVIATE_URL',
    auth_credentials=Auth.api_key('$WEAVIATE_API_KEY')
)
print('Weaviate OK:', client.is_ready())
client.close()
"
```

## Environment Variables

| Variable           | Description                |
| ------------------ | -------------------------- |
| `WEAVIATE_URL`     | Weaviate cluster URL       |
| `WEAVIATE_API_KEY` | API key for authentication |
