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

# JSON CLI

> CLI commands for JSON file conversation store

# JSON CLI

## Setup

No dependencies needed - uses Python's built-in JSON.

## Quick Start

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Test connection
praisonai persistence doctor \
  --conversation-backend json \
  --conversation-path "./conversations"

# Run agent
praisonai persistence run \
  --conversation-backend json \
  --conversation-path "./conversations" \
  "Hello"
```

## Commands

### Doctor

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence doctor \
  --conversation-backend json \
  --conversation-path "./conversations"
```

### Run with Session

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence run \
  --conversation-backend json \
  --conversation-path "./conversations" \
  --session-id my-session \
  "What is AI?"
```

### Resume

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence resume \
  --conversation-backend json \
  --conversation-path "./conversations" \
  --session-id my-session
```

### Export/Import

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai persistence export \
  --conversation-backend json \
  --conversation-path "./conversations" \
  --session-id my-session \
  --output session.json
```

## Python Test

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
python3 -c "
from praisonai.persistence import create_conversation_store
store = create_conversation_store('json', path='./test_json')
print('JSON OK')
"
```
