Pinecone CLI
CLI commands for Pinecone vector store
Pinecone CLI
Setup
pip install pinecone
export PINECONE_API_KEY=your-api-keyQuick Start
# 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
praisonai persistence doctor \
--knowledge-url "pinecone://your-index-host"Run with Knowledge
praisonai persistence run \
--knowledge-backend pinecone \
--session-id my-session \
"What do my documents say about AI?"Python Test
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 |