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

# Pinecone CLI

> CLI commands for Pinecone vector store

# Pinecone CLI

## Setup

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
pip install pinecone
export PINECONE_API_KEY=your-api-key
```

## Quick Start

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Test connection
praisonai persistence doctor \
  --knowledge-url "pinecone://your-index-host"

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

## Commands

### Doctor

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence doctor \
  --knowledge-url "pinecone://your-index-host"
```

### Run with Knowledge

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

## Python Test

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export PINECONE_API_KEY=your-key
python3 -c "
from pinecone import Pinecone
pc = Pinecone()
indexes = pc.list_indexes()
print('Pinecone OK:', [idx.name for idx in indexes])
"
```

## Environment Variables

| Variable           | Description           |
| ------------------ | --------------------- |
| `PINECONE_API_KEY` | Your Pinecone API key |
| `PINECONE_INDEX`   | Default index name    |
| `PINECONE_HOST`    | Index host URL        |
