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

# Deep Research CLI

> CLI commands for deep research in PraisonAI TypeScript

# Deep Research CLI Commands

The `praisonai-ts` CLI provides the `research` command for comprehensive research.

## Basic Research

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Research a topic
praisonai-ts research "What are the latest AI trends?"

# Research with depth control
praisonai-ts research "TypeScript best practices" --depth 5

# Limit sources
praisonai-ts research "Machine learning" --max-sources 10

# Get JSON output
praisonai-ts research "AI history" --json
```

**Example Output:**

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "success": true,
  "data": {
    "answer": "The latest AI trends include...",
    "citations": [
      { "title": "AI Research Paper", "url": "https://..." }
    ],
    "reasoning": [...],
    "confidence": 0.85
  }
}
```

## Research Options

| Option          | Description                 |
| --------------- | --------------------------- |
| `--depth`       | Research depth (iterations) |
| `--max-sources` | Maximum sources to use      |
| `--verbose`     | Enable verbose output       |

## SDK Usage

For programmatic research:

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { DeepResearchAgent } from 'praisonai';

const agent = new DeepResearchAgent({
  llm: 'openai/gpt-4o-mini',
  maxIterations: 5
});

const result = await agent.research('What is machine learning?');
console.log('Answer:', result.answer);
console.log('Confidence:', result.confidence);
console.log('Citations:', result.citations.length);
```

For more details, see the [Deep Research SDK documentation](/docs/js/deep-research).
